0

我在hadoop安装了 Cloudera CDH 4.3 的机器上运行命令,遇到了这个错误:

/workplace/cloudera/parcels/CDH-4.3.1-1.cdh4.3.1.p0.110/bin/../lib/hadoop/bin/hadoop: line 139: /opt/java/latest/bin/java: No such file or directory
/workplace/cloudera/parcels/CDH-4.3.1-1.cdh4.3.1.p0.110/bin/../lib/hadoop/bin/hadoop: line 139: exec: /opt/java/latest/bin/java: cannot execute: No such file or directory

然后我检查了那台机器上的java,发现它已经安装但在不同的位置:

whereis java
java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz

我怎样才能让 CDH4 从中获取 java /usr/bin/java

4

1 回答 1

0

创建符号链接 /opt/java/latest/bin/java -> /usr/bin/java?

于 2013-10-03T18:27:36.807 回答