每当我从命令提示符运行 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
可能与您的 Java 版本不兼容。
尝试跟随http://wiki.apache.org/hadoop/HadoopJavaVersions建议并安装正确的 Java 版本。