Hi Shay,
When create instance for the client I am getting a NoSuchMethodError in SnowballAnalyzer when I try to upgrade to ES 0.16.0 version.
My lib folder contains
All lucene 3.1.0 jar files and lucene_snowball_3.0.3 jar file. Kindly let me know how to fix this.
Here is my code and the error Statement line:
static Node node = nodeBuilder().client(true).node();
Error:
Error injecting constructor, java.lang.NoSuchMethodError: org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:87)
while locating org.elasticsearch.indices.analysis.IndicesAnalysisService
for parameter 4 at org.elasticsearch.indices.InternalIndicesService.(InternalIndicesService.java:106)
while locating org.elasticsearch.indices.InternalIndicesService
while locating org.elasticsearch.indices.IndicesService
for parameter 3 at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.(MetaDataCreateIndexService.java:86)
while locating org.elasticsearch.cluster.metadata.MetaDataCreateIndexService
Caused by: java.lang.NoSuchMethodError: org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:46)
at org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:61)
at org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:99)
at org.elasticsearch.indices.analysis.IndicesAnalysisService$$FastClassByGuice$$8eb00302.newInstance()
at org.elasticsearch.common.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
at org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:56)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
at org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:194)
at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
at org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194)
at org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:69)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at org.elasticsearch.node.internal.InternalNode.(InternalNode.java:145)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.bulk.CSVIndexer.(CSVIndexer.java:52)
at com.bulk.CSVRunner.main(CSVRunner.java:102)
Error injecting constructor, java.lang.NoSuchMethodError: org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:87)
while locating org.elasticsearch.indices.analysis.IndicesAnalysisService
Caused by: java.lang.NoSuchMethodError: org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:46)
at org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:61)
at org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:99)
at org.elasticsearch.indices.analysis.IndicesAnalysisService$$FastClassByGuice$$8eb00302.newInstance()
at org.elasticsearch.common.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
at org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
at org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:194)
at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
at org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194)
at org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:69)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at org.elasticsearch.node.internal.InternalNode.(InternalNode.java:145)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.bulk.CSVIndexer.(CSVIndexer.java:52)
at com.bulk.CSVRunner.main(CSVRunner.java:102)
2 errors
at org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354)
at org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:179)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:69)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at org.elasticsearch.node.internal.InternalNode.(InternalNode.java:145)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.bulk.CSVIndexer.(CSVIndexer.java:52)
.... 1 more
Hi Shay,
When create instance for the client I am getting a NoSuchMethodError in
SnowballAnalyzer when I try to upgrade to ES 0.16.0 version.
My lib folder contains
All lucene 3.1.0 jar files and lucene_snowball_3.0.3 jar file. Kindly let me
know how to fix this.
Here is my code and the error
Statement line:
static Node node = nodeBuilder().client(true).node();
Error:
Error injecting constructor, java.lang.NoSuchMethodError:
org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at
org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:87)
while locating org.elasticsearch.indices.analysis.IndicesAnalysisService
for parameter 4 at
org.elasticsearch.indices.InternalIndicesService.(InternalIndicesService.java:106)
while locating org.elasticsearch.indices.InternalIndicesService
while locating org.elasticsearch.indices.IndicesService
for parameter 3 at
org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.(MetaDataCreateIndexService.java:86)
while locating
org.elasticsearch.cluster.metadata.MetaDataCreateIndexService
Caused by: java.lang.NoSuchMethodError:
org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at
org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:46)
at
org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:61)
at
org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:99)
at
org.elasticsearch.indices.analysis.IndicesAnalysisService$$FastClassByGuice$$8eb00302.newInstance()
at
org.elasticsearch.common.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
at
org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
at
org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:56)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
at
org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:194)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
at
org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194)
at
org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:69)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:145)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.bulk.CSVIndexer.(CSVIndexer.java:52)
at com.bulk.CSVRunner.main(CSVRunner.java:102)
Error injecting constructor, java.lang.NoSuchMethodError:
org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at
org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:87)
while locating org.elasticsearch.indices.analysis.IndicesAnalysisService
Caused by: java.lang.NoSuchMethodError:
org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at
org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:46)
at
org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:61)
at
org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:99)
at
org.elasticsearch.indices.analysis.IndicesAnalysisService$$FastClassByGuice$$8eb00302.newInstance()
at
org.elasticsearch.common.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
at
org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:194)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
at
org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194)
at
org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:69)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:145)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.bulk.CSVIndexer.(CSVIndexer.java:52)
at com.bulk.CSVRunner.main(CSVRunner.java:102)
2 errors
at
org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354)
at
org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:179)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:69)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:145)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.bulk.CSVIndexer.(CSVIndexer.java:52)
.... 1 more
No need for the snowball jar file anymore (in lucene 3.1), its part of lucene-analyzers jar file. Just remove the 3.0.3 jar file from the classpath.
On Tuesday, April 26, 2011 at 12:47 PM, Alberto Paro wrote:
Use the lucene_snowball from 3.1 release (no the 3.0.3). It should be in the contrib analyzers.
Hi Shay,
When create instance for the client I am getting a NoSuchMethodError in
SnowballAnalyzer when I try to upgrade to ES 0.16.0 version.
My lib folder contains
All lucene 3.1.0 jar files and lucene_snowball_3.0.3 jar file. Kindly let me
know how to fix this.
Here is my code and the error
Statement line:
static Node node = nodeBuilder().client(true).node();
Error:
Error injecting constructor, java.lang.NoSuchMethodError:
org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at
org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:87)
while locating org.elasticsearch.indices.analysis.IndicesAnalysisService
for parameter 4 at
org.elasticsearch.indices.InternalIndicesService.(InternalIndicesService.java:106)
while locating org.elasticsearch.indices.InternalIndicesService
while locating org.elasticsearch.indices.IndicesService
for parameter 3 at
org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.(MetaDataCreateIndexService.java:86)
while locating
org.elasticsearch.cluster.metadata.MetaDataCreateIndexService
Caused by: java.lang.NoSuchMethodError:
org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at
org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:46)
at
org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:61)
at
org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:99)
at
org.elasticsearch.indices.analysis.IndicesAnalysisService$$FastClassByGuice$$8eb00302.newInstance()
at
org.elasticsearch.common.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
at
org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
at
org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:56)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
at
org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:194)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
at
org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194)
at
org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:69)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:145)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.bulk.CSVIndexer.(CSVIndexer.java:52)
at com.bulk.CSVRunner.main(CSVRunner.java:102)
Error injecting constructor, java.lang.NoSuchMethodError:
org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at
org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:87)
while locating org.elasticsearch.indices.analysis.IndicesAnalysisService
Caused by: java.lang.NoSuchMethodError:
org.apache.lucene.analysis.snowball.SnowballAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V
at
org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:46)
at
org.apache.lucene.analysis.snowball.SnowballAnalyzer.(SnowballAnalyzer.java:61)
at
org.elasticsearch.indices.analysis.IndicesAnalysisService.(IndicesAnalysisService.java:99)
at
org.elasticsearch.indices.analysis.IndicesAnalysisService$$FastClassByGuice$$8eb00302.newInstance()
at
org.elasticsearch.common.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
at
org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:194)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
at
org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194)
at
org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:69)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:145)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.bulk.CSVIndexer.(CSVIndexer.java:52)
at com.bulk.CSVRunner.main(CSVRunner.java:102)
2 errors
at
org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354)
at
org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:179)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:69)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:145)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.bulk.CSVIndexer.(CSVIndexer.java:52)
.... 1 more
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.