8.X - Elasticsearch failing to install or upgrade due to...

Expand / Collapse
 

8.X - Elasticsearch failing to install or upgrade due to incorrect JAVA_HOME value


Article ID: 52496 - Last Review: October 7, 2016

PROBLEM

Installing Elasticsearch fails. 



SYMPTOMS

In the MiCC.Installer.Core logfile you will see a line like the following:

Info: 2016-Aug-10 07:18:35.999   Setting JAVA_HOME to C:\Program Files\Java\jre1.8.0_91     ()

When you check this Java location, it does not contain the current install.


RESOLUTION

Elasticsearch has stored a JAVA_HOME variable for itself, and it has not updated after a java version update.

1. Open regedit.exe
2. Go to reg key HKLM/SOFTWARE/Wow6432Node/Apache Software Foundation/Procrun 2.0/elasticsearch-service-x64/Parameters/Java
3. Look at the value [Jvm].  It will be something like c:\Program Files\Java\jre1.8.0_101\bin\server\jvm.dll
4. Replace the value with %JAVA_HOME%\bin\server\jvm.dll 

This will make the JAVA_HOME variable used by Elasticsearch resilient to upgrades by checking the system's own location each time.


APPLIES TO

MiCC 8.X 

Keywords: elasticsearch java java_home install



Rate this Article:
     

Add Your Comments


Name: *
Email Address:
Web Address:
Verification Code:
*
 

Details
Last Modified:Friday, October 07, 2016
Last Modified By: AndrewMontpetit
Type: FIX
Rated 5 stars based on 1 vote
Article has been viewed 6,092 times.
Options