NoSuchMethodError cannot initialize es

I tried elasticsearch versions 18.0,19.2 and 19.3 but can't initialize ES
getting same Exception

[2012-06-15 11:59:20,439][INFO ][node ] [Nightmare]
{0.19.2}[5113]: initializing ...
[2012-06-15 11:59:20,448][INFO ][plugins ] [Nightmare]
loaded [], sites [head]
[2012-06-15 11:59:22,909][ERROR][bootstrap ] {0.19.2}:
Initialization Failed ...

  1. NoSuchMethodError[org.apache.
    lucene.analysis.standard.StandardAnalyzer.(Lorg/apache/lucene/util/Version;)V]2)
    NoClassDefFoundError[Could not initialize class
    org.elasticsearch.common.lucene.Lucene]

You have probably another Lucene Jar in your classloader, no ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:36, nel NeilAlex@algotree.com a écrit :

I tried elasticsearch versions 18.0,19.2 and 19.3 but can't initialize ES getting same Exception

[2012-06-15 11:59:20,439][INFO ][node ] [Nightmare] {0.19.2}[5113]: initializing ...
[2012-06-15 11:59:20,448][INFO ][plugins ] [Nightmare] loaded , sites [head]
[2012-06-15 11:59:22,909][ERROR][bootstrap ] {0.19.2}: Initialization Failed ...

  1. NoSuchMethodError[org.apache.
    lucene.analysis.standard.StandardAnalyzer.(Lorg/apache/lucene/util/Version;)V]2) NoClassDefFoundError[Could not initialize class org.elasticsearch.common.lucene.Lucene]

Hi ,

Thankyou so much the reply..Being a newbie i jus got confused, i m sry
if i am wrong,, by the term classsloader did you mean the jar in the java
library..

thanks nel

On Friday, June 15, 2012 10:10:45 PM UTC+5:30, David Pilato wrote:

You have probably another Lucene Jar in your classloader, no ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:36, nel NeilAlex@algotree.com a écrit :

I tried elasticsearch versions 18.0,19.2 and 19.3 but can't initialize
ES getting same Exception

[2012-06-15 11:59:20,439][INFO ][node ] [Nightmare]
{0.19.2}[5113]: initializing ...
[2012-06-15 11:59:20,448][INFO ][plugins ] [Nightmare]
loaded , sites [head]
[2012-06-15 11:59:22,909][ERROR][bootstrap ] {0.19.2}:
Initialization Failed ...

  1. NoSuchMethodError[org.apache.

lucene.analysis.standard.StandardAnalyzer.(Lorg/apache/lucene/util/Version;)V]2)
NoClassDefFoundError[Could not initialize class
org.elasticsearch.common.lucene.Lucene]

Yes. Do you only start ES or are you trying to run it from java ?

Did you install plugins ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:53, nel NeilAlex@algotree.com a écrit :

Hi ,

Thankyou so much the reply..Being a newbie i jus got confused, i m sry if i am wrong,, by the term classsloader did you mean the jar in the java library..

thanks nel

On Friday, June 15, 2012 10:10:45 PM UTC+5:30, David Pilato wrote:
You have probably another Lucene Jar in your classloader, no ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:36, nel NeilAlex@algotree.com a écrit :

I tried elasticsearch versions 18.0,19.2 and 19.3 but can't initialize ES getting same Exception

[2012-06-15 11:59:20,439][INFO ][node ] [Nightmare] {0.19.2}[5113]: initializing ...
[2012-06-15 11:59:20,448][INFO ][plugins ] [Nightmare] loaded , sites [head]
[2012-06-15 11:59:22,909][ERROR][bootstrap ] {0.19.2}: Initialization Failed ...

  1. NoSuchMethodError[org.apache.
    lucene.analysis.standard.StandardAnalyzer.(Lorg/apache/lucene/util/Version;)V]2) NoClassDefFoundError[Could not initialize class org.elasticsearch.common.lucene.Lucene]

Hi,,
I just tried to start ES. No i didnt install any plugins..
thanks
nel

On Fri, Jun 15, 2012 at 10:37 PM, David Pilato david@pilato.fr wrote:

Yes. Do you only start ES or are you trying to run it from java ?

Did you install plugins ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:53, nel NeilAlex@algotree.com a écrit :

Hi ,

Thankyou so much the reply..Being a newbie i jus got confused, i m sry
if i am wrong,, by the term classsloader did you mean the jar in the java
library..

thanks nel

On Friday, June 15, 2012 10:10:45 PM UTC+5:30, David Pilato wrote:

You have probably another Lucene Jar in your classloader, no ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:36, nel NeilAlex@algotree.com a écrit :

I tried elasticsearch versions 18.0,19.2 and 19.3 but can't initialize
ES getting same Exception

[2012-06-15 11:59:20,439][INFO ][node ] [Nightmare]
{0.19.2}[5113]: initializing ...
[2012-06-15 11:59:20,448][INFO ][plugins ] [Nightmare]
loaded , sites [head]
[2012-06-15 11:59:22,909][ERROR][bootstrap ] {0.19.2}:
Initialization Failed ...

  1. NoSuchMethodError[org.apache.
    lucene.analysis.standard.StandardAnalyzer.(Lorg/
    apache/lucene/util/Version;)V]**2) NoClassDefFoundError[Could not
    initialize class org.elasticsearch.common.**lucene.Lucene]

As David said, it's most likely a class path issue. Open bin/elasticsearch
in a text editor and add "echo" before exec in the foreground section:

if [ "x$foreground" != "x" ]; then
    es_parms="$es_parms -Des.foreground=yes"
    *echo* exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms 

-Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props
org.elasticsearch.bootstrap.Elasticsearch
else

Then start elasticsearch with -f flag and check the class path that
elasticsearch is running with.

On Friday, June 15, 2012 1:12:04 PM UTC-4, nel wrote:

Hi,,
I just tried to start ES. No i didnt install any plugins..
thanks
nel

On Fri, Jun 15, 2012 at 10:37 PM, David Pilato david@pilato.fr wrote:

Yes. Do you only start ES or are you trying to run it from java ?

Did you install plugins ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:53, nel NeilAlex@algotree.com a écrit :

Hi ,

Thankyou so much the reply..Being a newbie i jus got confused, i m sry
if i am wrong,, by the term classsloader did you mean the jar in the java
library..

thanks nel

On Friday, June 15, 2012 10:10:45 PM UTC+5:30, David Pilato wrote:

You have probably another Lucene Jar in your classloader, no ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:36, nel NeilAlex@algotree.com a écrit :

I tried elasticsearch versions 18.0,19.2 and 19.3 but can't initialize
ES getting same Exception

[2012-06-15 11:59:20,439][INFO ][node ]
[Nightmare] {0.19.2}[5113]: initializing ...
[2012-06-15 11:59:20,448][INFO ][plugins ]
[Nightmare] loaded , sites [head]
[2012-06-15 11:59:22,909][ERROR][bootstrap ] {0.19.2}:
Initialization Failed ...

  1. NoSuchMethodError[org.apache.
    lucene.analysis.standard.StandardAnalyzer.(Lorg/
    apache/lucene/util/Version;)V]**2) NoClassDefFoundError[Could not
    initialize class org.elasticsearch.common.**lucene.Lucene]

Hi,

thank you... let me try that.

On Fri, Jun 15, 2012 at 11:30 PM, Igor Motov imotov@gmail.com wrote:

As David said, it's most likely a class path issue. Open bin/elasticsearch
in a text editor and add "echo" before exec in the foreground section:

if [ "x$foreground" != "x" ]; then
    es_parms="$es_parms -Des.foreground=yes"
    *echo* exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms

-Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props
org.elasticsearch.bootstrap.Elasticsearch
else

Then start elasticsearch with -f flag and check the class path that
elasticsearch is running with.

On Friday, June 15, 2012 1:12:04 PM UTC-4, nel wrote:

Hi,,
I just tried to start ES. No i didnt install any plugins..
thanks
nel

On Fri, Jun 15, 2012 at 10:37 PM, David Pilato david@pilato.fr wrote:

Yes. Do you only start ES or are you trying to run it from java ?

Did you install plugins ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:53, nel NeilAlex@algotree.com a écrit :

Hi ,

Thankyou so much the reply..Being a newbie i jus got confused, i m
sry if i am wrong,, by the term classsloader did you mean the jar in the
java library..

thanks nel

On Friday, June 15, 2012 10:10:45 PM UTC+5:30, David Pilato wrote:

You have probably another Lucene Jar in your classloader, no ?

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 15 juin 2012 à 18:36, nel NeilAlex@algotree.com a écrit :

I tried elasticsearch versions 18.0,19.2 and 19.3 but can't
initialize ES getting same Exception

[2012-06-15 11:59:20,439][INFO ][node ]
[Nightmare] {0.19.2}[5113]: initializing ...
[2012-06-15 11:59:20,448][INFO ][plugins ]
[Nightmare] loaded , sites [head]
[2012-06-15 11:59:22,909][ERROR][bootstrap ] {0.19.2}:
Initialization Failed ...

  1. NoSuchMethodError[org.apache.
    lucene.analysis.standard.StandardAnalyzer.(Lorg/apache
    /lucene/util/Version;)V]**2) NoClassDefFoundError[Could not initialize
    class org.elasticsearch.common.lucene.Lucene]