hadoop-start-all.sh未执行

mrfwxfqh  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(509)

我今天更新到了ubuntu16.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,效果很好。
你能帮忙吗?!

baubqpgj

baubqpgj1#

没关系,我解决了这个问题。我所要做的就是改变jdk的版本 /usr/local/hadoop/etc/hadoop/hadoop-env.sh 而在 bashrc 文件,到 java-8-openjdk-amd64 .
谢谢你的关注。

相关问题