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",
public static void main(String args[])
{
getClient();
}
}
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 ..
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
public static void main(String args[])
{
getClient();
}
}
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 ..
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.