I have elasticsearch in my environment. It was running fine but suddenly elasticsearch service "Elasticsearch 2.3.2 (elasticsearch-service-x64)" got stopped. Now i am trying to restart its starting but it is getting stopped automatically without any error. Below are the steps which i have already tried:
Set the JAVA_HOME path in system variable with latest java installed.
Tried to start the process manually but no luck.
In elasticsearch-service-x64-stderr.2017-11-08.log file i saw the error "Exception in thread "main" tion: path.home is not configured" --> not sure what this means.
I have tried to start the process with service.bat start command -> this also executed successfully.
Sometimes in elasticsearch-service-x64-stderr.2017-11-08.log we have also seen "Exception in thread "main" uchFileException: D:\elasticsearch-2.3.2\elasticsearch-2.3.2\plugins\elasticsearch-deletebyquery-master\plugin-descriptor.properties"
Please let me know if you have any suggestion on this
hi @Sandeep.K in system environment variable where u changed this JAVA_HOME and path of that java where that install that is C:\program file\java\jdk..... like this
if you change in system environment variable it should generate error so kindly check the system environment variable in this you have to give the path and set the variable in admin side its first box of environment variable screen is following here you have to change only in red box.
then restart the whole cluster or ELK stack and start the elasticsearch as a service.
@Sandeep.K
when first time you change in environment variable what path u gave C:\Program Files\Java\jre1.8.0_151 or C:\Program Files\Java\jdk1.8.0_151
we dont use jre in path we have to use jdk thats what i was asked which path you using jdk or jre....
as you mention in your screen shot you give the path of jre you change the path in last you have to give jdk1.8.0_151
Following is you have to change in your environment variable:
Variable = JAVA_HOME
Path = C:\Program Files\Java\jdk1.8.0_151
I have done as you said. In the snap you will see that i have JAVA_HOME as system variable as well because without this Kibana was not working. Please suggest.
hi @Sandeep.K
You have to change in system variable also, you have to remove the JAVA_HOME and its path from the system variable as following screen shot:
I dont know that you change in system variable also because i phase the same type problem and i resolve like this so,
Do one thing You remove this java from system variable and restart ELK hope its work.
can you try this? can you change the same in both jdk path in admin and system variable like following:
In this picture see it's old version is mention you mention your latest version 1.8.0.....like so change in both then restasrt service and see its working or not coz mine is working perfectly when i was doing like this.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.