HBase cluster at boot time can not find java_home problem, start the cluster when the error message is as follows:
[Email protected]:/usr/local/hbase-0.90.4/bin#./start-hbase.SHstarting master, logging to/usr/local/hbase-0.90.4/bin/. /logs/hbase-root-master-master.outslave1:+======================================================================+slave1:| Error:java_home is not set and JAVA could isn't be found |slave1:+----------------------------------------------------------------------+slave1:| Download the latest Sun JDK from the Sun Java Web site |slave1:| > http://java.sun.com/javase/downloads/< |SLAVE1: | |slave1:| HBase requires Java1.6or later. |slave1:| Note:this script wouldFindSun Java Whether youInstallUsing the |slave1:| Binary or the RPM based installer. |slave1:+======================================================================+slave2:+======================================================================+slave2:| Error:java_home is not set and JAVA could isn't be found |slave2:+----------------------------------------------------------------------+slave2:| Download the latest Sun JDK from the Sun Java Web site |slave2:| > http://java.sun.com/javase/downloads/< |Slave2: | |slave2:| HBase requires Java1.6or later. |slave2:| Note:this script wouldFindSun Java Whether youInstallUsing the |slave2:| Binary or the RPM based installer. |slave2:+======================================================================+
If the above error occurs, you should modify the environment variable of the Java_home in the hbase-env.sh file under the Conf file, either the Java_home before the # is not removed, or the path configuration error of Java_home is checked carefully.
HBase cluster cannot find java_home at startup