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

Colleagues,

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(ClassLoader.java:274)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:540)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
at java.net.URLClassLoader.access$300(URLClassLoader.java:79)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1038)
at java.security.AccessController.doPrivileged(AccessController.java:373)
at java.net.URLClassLoader.findClass(URLClassLoader.java:429)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:702)
at java.lang.ClassLoader.loadClass(ClassLoader.java:681)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:664)
Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.

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
/usr/bin/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

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: