0

我找不到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
4

1 回答 1

1

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

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

如果是,则将其更改为

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
于 2013-06-27T09:40:04.043 回答