Hadoop - start-all.sh没有执行

时间:2016-04-30 08:26:33

标签: ubuntu hadoop

今天我更新到Ubuntu 16.04,当我start-all.sh时,它会抛出这个:

This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
/usr/local/hadoop/bin/hdfs: line 304: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
Starting namenodes on []
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hduser-namenode-nkhl.out
localhost: /usr/local/hadoop/bin/hdfs: line 304: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-hduser-datanode-nkhl.out
localhost: /usr/local/hadoop/bin/hdfs: line 304: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
/usr/local/hadoop/bin/hdfs: line 304: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-hduser-resourcemanager-nkhl.out
/usr/local/hadoop/bin/yarn: line 333: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-hduser-nodemanager-nkhl.out
localhost: /usr/local/hadoop/bin/yarn: line 333: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory

JPS仅显示4676 Jps。我安装了mysql,工作得很好。

你能帮忙吗?!

1 个答案:

答案 0 :(得分:1)

没关系,我解决了这个问题。我所要做的就是将/usr/local/hadoop/etc/hadoop/hadoop-env.shbashrc文件中的jdk版本更改为java-8-openjdk-amd64

感谢您的回顾。