-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Unable to run elasticsearch - Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.Version #2989
Comments
Can you explain what you are doing exactly? I mean are you downloading the 0.90 release from here: http://www.elasticsearch.org/download/ and then unzip / untar and run |
Exactly... 22:56 lbelluccini@xxxxxx ~/tmp> java -version 10:56PM I tried to printout the ES_CLASSPATH and ES_HOME and they are correctly set by the script itself... Linux xxxxxx 2.6.32.23-0.3-default #1 SMP 2010-10-07 14:57:45 +0200 x86_64 x86_64 x86_64 GNU/Linux |
I got exactly the same error when using the official .deb (upgrade from 0.20.5 to 0.90.0), on Ubuntu 13.04 64bit and Oracle JDK 7u21. I then apt-get purged the old installation, re-installed 0.90 from scratch, and everything worked fine. I didn't investigate any further, but I would suspect either a problem with the existing elasticsearch.yml, or with an existing native script that I referenced there (which of course was compiled against 0.20.x). HTH. |
Unfortunately I have no right to modify my system... |
@klausbrunner I guess you do not have a way to reproduce your problem? Did you use plugins, which maybe included some more jars (even an old es installation maybe)? @lucabelluccini have you maybe unzipped your elasticsearch zip file into an existing elasticsearch installation and then tried to start? Can you set the log level to TRACE in your logging.yml and check if you are getting more data logged, so we can debug this issue? |
@spinscale I downloaded and untarred both 0.20 and 0.90 in different paths. 19:51 lbelluccini@nxxxxxxxx ~/repos/pi_stats/elasticsearch-0.90.0> Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.Version 7:51PM 19:52 lbelluccini@nxxxxxxxx ~/repos/pi_stats/elasticsearch-0.20.6> ./bin/elasticsearch -f 7:52PM
|
@spinscale Yep, a plugin was also involved (phonetic). I can't easily reproduce this now, but it seems likely that either the plugin or the native script may have been the culprit, as both had been built for 0.20.x. |
@lucabelluccini can you show me all the commands (including the wget to download the archive) you executed in order to get your elasticsearch versions and to start elasticsearch. It doesnt like you downloaded the zip or the tar.gz distribution, otherwise I cannot explain why you lack lucene jars when starting elasticsearch. |
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.tar.gz I did the same on my unix vm and it worked... |
Ok, this is getting even more strange. To what is your JAVA_HOME set? |
Also would be interseting to see an export of all env vars. |
Linux version 2.6.16.60-0.76.8-smp (geeko@buildhost) (gcc version 4.1.2 20070115 (SUSE Linux)) #1 SMP Tue Jan 11 11:23:59 UTC 2011 No JAVA_HOME set. java version "1.7.0_03" /nastools/java/bin/java MAIL=/var/mail/lbelluccini SSH_TTY=/dev/pts/2 PS1=%{%}%T %{%}%n%{%}@%{%}%m %{%}%~%{%}>%{%} PHASE=unit_dev CCACHE_DIR=/mwrep/ccache |
Hey, judging from your setup I have one more assumption (and slowly but surely being more sure this is a administration setup preventing elasticsearch from starting). Has your system administrator have any additional security tools like SELinux or AppArmor running? Wild guesses from the distance... maybe having one of sysadmins jump in may help to clear things up a bit with this setup. |
Hello... I am quite sure LinuxSe is active. Confirmed! Outside from the NAS works correctly. [2013-05-14 09:11:15,600][INFO ][node ] [Aged Genghis] {0.90.0}[30251]: initializing ... |
Closing this issue then. Not an elasticsearch issue. Still important to keep in mind, that running security hardening tools might be an issue in order to get elasticsearch up and running. Thanks a lot for your patience and ongoing information delivery! |
Thank you for the support! Great job. |
I am still experiencing this issue... |
I got an error using elasticsearch 0.90.0
I am unable to run it using elasticsearch sh script.
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.Version
at org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Bootstrap.java:251)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:235)
at org.elasticsearch.bootstrap.ElasticSearch.main(ElasticSearch.java:32)
The text was updated successfully, but these errors were encountered: