6-sun

13z8s7eq  于 2021-06-04  发布在  Hadoop
关注(0)|答案(1)|浏览(339)

我找不到java6,所以我尝试了java7,但它不起作用。我试过一些java6,但还是坏了。下面是我尝试检查hadoop是否正常的时候。

zero@ubuntu:/usr/local/java$ hadoop version
/usr/bin/hadoop: line 320: /usr/lib/jvm/java-6-sun/bin/java: No such file or directory
/usr/bin/hadoop: line 390: /usr/lib/jvm/java-6-sun/bin/java: No such file or directory
erhoui1w

erhoui1w1#

你家里有这条线吗 hadoop-env.sh ?

export JAVA_HOME=/usr/lib/jvm/java-6-sun

如果是,则将其更改为

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

相关问题