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


    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的环境变量,要么是java_home前面的#没有去掉,要么是java_home的路径配置错误,仔细检查。

  • 相关阅读:
    26.列表的循环遍历
    效率比较--链表
    心之距离 再回首 光年之遥远
    效率比较--集合
    效率比较--数组
    哈希表
    栈 VS 队列
    struts1 标签引入
    web 连接池配置
    zip&ftp命令
  • 原文地址:https://www.cnblogs.com/longshiyVip/p/4824588.html
Copyright © 2020-2023  润新知