无论何时我从命令提示符运行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)
你能告诉我可能导致这个问题的原因吗?谢谢
答案 0 :(得分:0)
HBase至少需要Oracle的Java 6。 通过在hbase-env.sh下面添加解决了相同的错误 export JAVA_HOME = / usr / lib / jvm / java-7-oracle / jre