zoukankan      html  css  js  c++  java
  • 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的路径配置错误,仔细检查。

  • 相关阅读:
    扒几个 3D 模型备用
    向 3D 世界迈出一小步
    为什么说使用 Linux 系统学习 OpenGL 更方便
    Windows 下的 Linux环境
    windows git 的扩展用法——其他linux命令
    Linux 环境变量
    powershell(或者windows terminal)中使用git
    QT无边框窗体——拦截windows消息实现
    QT工具——开发技巧与其他工具
    QT工具——国际化工具
  • 原文地址:https://www.cnblogs.com/longshiyVip/p/4824588.html
Copyright © 2011-2022 走看看