Issues after Elasticsearch 1.3.2 upgrade

Question:

After upgrade to ES 1.3.2 I’m facing the following issues:

1) On startup got error:

2) when I attempt to upgrade the cloud-aws plugin to version 2.3.0 (compatible with ES 1.3) I get:

Java version is:
java version “1.7.0_45”
OpenJDK Runtime Environment (amzn-2.4.3.2.32.amzn1-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Same issue faced with ES versions 1.3.1 and 1.3.0
Surprisingly ES v1.3.2 works fine on java version “1.7.0_25”

Answer:

The issue is resolved. The issue comes when compilation happens with a different java version and at runtime a different version of java is found. When we looked at the Java -version, it was pointing at 1.7 where as java_home was pointing to 1.6. We also checked command “java which” which was pointing to 1.7. When we checked the script of elastic search, it gives precedence to “JAVA_HOME” and then looks for “java which”. Installed JDK 1.7(earlier only JRE 1.7) was installed, uninstalled 1.6 using command

  • yum install java-1.7.0-openjdk
  • yum remove install openjdk-6-jre
  • yum remove java-1.6.0-openjdk

and the issue is resolved..!! 🙂

Leave a Reply