每当我从命令提示符运行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)
你能告诉我是什么导致这个问题吗?
1条答案
按热度按时间8iwquhpp1#
hbase至少需要oracle提供的java 6。通过将下面的内容放入hbase-env.sh中,解决了同样的错误export java\u home=/usr/lib/jvm/java-7-oracle/jre