首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

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

2012-07-19 
hbase集群在启动的时候找不到JAVA_HOME的问题root@master:/usr/local/hbase-0.90.4/bin# ./start-hbase.sh

hbase集群在启动的时候找不到JAVA_HOME的问题
root@master:/usr/local/hbase-0.90.4/bin# ./start-hbase.sh
starting master, logging to /usr/local/hbase-0.90.4/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的环境变量

热点排行