hbase無法啓動: HBase requires Java 1.6 or later.

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: +======================================================================+

這是由於hbase沒有找到jdk的原因,修改hbase/conf/hbase-env.sh文件,添加JAVA_HOME,如下:
# The java implementation to use. Java 1.6 required.
export JAVA_HOME=/usr/java/jdk1.7.0_25
發佈了29 篇原創文章 · 獲贊 5 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章