Starting elasticsearch: which: no java in (/sbin:/usr/sbin:/bin:/usr/bin)
Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME [FAILED]
The Java JDK was installed in the /opt/jdk1.8.0_71
I've tried setting my JAVA_HOME, JRE_HOME and $PATH but it doesn't seem to matter.
I do not know what should be done to allow elasticsearch to recognize the Java JDK.
Is there a specific elasticsearch file which must be modified to allow this?
Are you exporting the JAVA_HOME variable in your shell, or where elasticsearch starts?
It's possible you may need to put it in the environment configuration file, which I believe (if you installed from RPM) lives in /etc/sysconfig/elasticsearch.
I attempt to run the elasticsearch service as "sudo", but I try to run w/ the -E opton to preserve the environment variables sudo -E service elasticsearch start
Yes, I did manually download/install via RPM.
I have modified the elasticsearch configuration file you suggested. /etc/sysconfig/elasticsearch
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.