0

每当我从命令提示符运行 hadoop/hbase 进程时,我都会收到一个错误::

/usr/local/hadoop/bin/hadoop: line 320: /usr/lib/jvm/jdk1.7.0/bin/java: cannot execute binary file
/usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0/bin/java: cannot execute binary file
/usr/local/hadoop/bin/hadoop: line 390: /usr/lib/jvm/jdk1.7.0/bin/java: Success

当我启动 hbase 时,我得到了同样的错误。

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)

你能告诉我什么可能导致这个问题吗?

4

1 回答 1

0

HBase 至少需要 Oracle 的 Java 6。通过把下面的 hbase-env.sh 解决了同样的错误 export JAVA_HOME=/usr/lib/jvm/java-7-oracle/jre

于 2013-12-17T18:52:00.677 回答