Moving ES from V1.5 to V1.7 break things



Any one who has been running into this. Backing out a working ES V1.5 and installing a fresh V1.7 I get the following error message when attemping to start

[root@sidr35dgapan001 ~]# /etc/init.d/elasticsearch start
Starting elasticsearch: [ OK ]
[root@sidr35dgapan001 ~]# Exception in thread "main" java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/elasticsearch/bootstrap/Elasticsearch, offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(
at java.lang.ClassLoader.loadClassHelper(
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.

(Nik Everett) #2

What version of Java do you have installed? It might be picking up a funky version of Java.
What Linux flavor are you running?


I am on RHEL 6.7

[root@sidr35dgapan001 ~]# java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

[root@sidr35dgapan001 ~]# which java

[root@sidr35dgapan001 ~]# ls -altr /usr/bin/java

lrwxrwxrwx. 1 root root 25 Jun 5 14:04 /usr/bin/java -> /opt/jdk1.8.0_45/bin/java

(Nik Everett) #4

That certainly looks right. All of my googling points to this being an error message about trying to run new Java code with an old JVM. Do you happen to have any other Java versions installed?

Could you drop an echo into the init script and see which java executable its picking up?


Good morning,

I have a few other enterprise software packages on that machine where I see the problem. I have decided to move ES to a separate box. Installing everything away from my "problem" box things are fine.

It was quicker that way :slight_smile:

(system) #6