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: | 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. |

在尝试启动HBase时遇到了问题,系统返回错误提示:JAVA_HOME未设置,且未找到Java。错误日志显示,HBase需要Java 1.6或更高版本。解决方案是在hbase-env.sh配置文件中添加JAVA_HOME路径,例如:JAVA_HOME=/usr/java/jdk1.7.0_25。

被折叠的 条评论
为什么被折叠?



