hbase集群在启动的时候找不到JAVA_HOME的问题

hbase集群在启动的时候找不到JAVA_HOME的问题,启动集群的时候报错信息如下:

root@master:/usr/local/hbase-0.90./bin# ./start-hbase.sh
starting master, logging to /usr/local/hbase-0.90./bin/../logs/hbase-root-master-master.out
slave1: +======================================================================+
slave1: | Error: JAVA_HOME is not set and Java could not be found |
slave1: +----------------------------------------------------------------------+
slave1: | Please download the latest Sun JDK from the Sun Java web site |
slave1: | > http://java.sun.com/javase/downloads/ < |
slave1: | |
slave1: | HBase requires Java 1.6 or later. |
slave1: | NOTE: This script will find Sun Java whether you install using the |
slave1: | binary or the RPM based installer. |
slave1: +======================================================================+
slave2: +======================================================================+
slave2: | Error: JAVA_HOME is not set and Java could not be found |
slave2: +----------------------------------------------------------------------+
slave2: | Please download the latest Sun JDK from the Sun Java web site |
slave2: | > http://java.sun.com/javase/downloads/ < |
slave2: | |
slave2: | HBase requires Java 1.6 or later. |
slave2: | NOTE: This script will find Sun Java whether you install using the |
slave2: | binary or the RPM based installer. |
slave2: +======================================================================+

如果出现以上错误,应该修改conf文件下的hbase-env.sh文件中的java_home的环境变量,要么是java_home前面的#没有去掉,要么是java_home的路径配置错误,仔细检查。

上一篇:php测试题整理(0519)


下一篇:10件在PHP7中不要做的事情