New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
knapsack start up problem #75
Comments
You can not run the Knapsack plugin at transport client side. It must run at server side in a node being part of the cluster. |
Hi, package com.knapsack; import java.io.File; import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder; public class KnapSackImport {
} Am getting the Exception as: Exception in thread "main" java.lang.NoSuchFieldError: LUCENE_4_10_1 May I know why am getting this exception? and how to solve this |
And May I know why we should not use Transport Client? |
You are using a wrong Elasticsearch / Knapsack version combination. |
May I know Which versions combination I have to use? |
Knapsack uses indexed data from cluster nodes, it is an internal export/import cluster service. Because TransportClient does not hold any cluster service, this combination is not possible. |
The correct ones from the README of course. Example: Elasticsearch 1.5.2 with Knapsack 1.5.2.0 |
Hi, I have changed the knapsack jar to 1.4.0.0 as am using Elasticsearch1.4.0 and then I have tried, package com.knapsack; import java.io.IOException; import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder; public class KnapSackImport {
} Even am getting the error as: Is this problem related to knapsack or any other and may I know the relevant solution |
Shield is not supported, sorry. It is not open source. |
So is there any solution for this or else do I need to use knapsack in other way? |
Sure, you have to disable Shield or ask Shield support for a solution. |
Okay Thank you So much.. |
Hi,
} But am getting again the exception as:
1 error May I know the reason and solution to this? |
You seem to have an error in your node setup, maybe you initialized twice. The This simple node test works: c20195d |
Hi Jorg, public class KnapSackImport {
} Again am getting the exception as: Exception in thread "main" org.elasticsearch.common.inject.CreationException: Guice creation errors:
1 error Where am getting the problem at node , May I know solution to this.. |
Hi,
Am using elasticsearch-knapsack plugin for update settings and for few other actions but am unable to start it , I just started using normal client creation as:
public class KnapSackImport {
private static Client client = null;
@Inject
public static Client getClient()
{
Client client = new TransportClient()
.addTransportAddress(new InetSocketTransportAddress("192.168.1.59", 9300));
if(client!=null)
{
System.out.println("client");
}
return client;
}
public static void main(String args[])
{
}
}
So when am running this am getting :
Exception in thread "main" org.elasticsearch.common.inject.CreationException: Guice creation errors:
No implementation for org.elasticsearch.cluster.ClusterService was bound.
while locating org.elasticsearch.cluster.ClusterService
for parameter 1 at org.xbib.elasticsearch.knapsack.KnapsackService.(Unknown Source)
at org.xbib.elasticsearch.knapsack.KnapsackModule.configure(KnapsackModule.java:25)
A binding to org.xbib.elasticsearch.knapsack.KnapsackService was already configured at org.xbib.elasticsearch.knapsack.KnapsackModule.configure(KnapsackModule.java:25).
at org.xbib.elasticsearch.knapsack.KnapsackModule.configure(KnapsackModule.java:25)
2 errors
at org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:344)
at org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:151)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:102)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:59)
at org.elasticsearch.client.transport.TransportClient.(TransportClient.java:187)
at org.elasticsearch.client.transport.TransportClient.(TransportClient.java:115)
at com.knapsack.KnapSackImport.getClient(KnapSackImport.java:21)
at com.knapsack.KnapSackImport.main(KnapSackImport.java:33)
Can anyone trace this and tell me how to proceed with this ..
The text was updated successfully, but these errors were encountered: