dfs.sh不启动jobtacker和tasktracker

qeeaahzv  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(292)

我安装了hadoop单节点,现在我用 start-dfs.sh 命令。
但是jobotracker和tasktracker并没有出现在 jps 命令,所以他们似乎没有开始。
你明白为什么吗?我正在安装2.6.2版。。。
执行命令后 start-dfs.sh ,将显示:

[hadoopadmin@hadoop ~]$ start-dfs.sh
16/03/23 12:17:19 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: starting namenode, logging to /usr/local/hadoop-2.6.2/logs/hadoop-hadoopadmin-namenode-hadoop.out
localhost: starting datanode, logging to /usr/local/hadoop-2.6.2/logs/hadoop-hadoopadmin-datanode-hadoop.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop-2.6.2/logs/hadoop-hadoopadmin-secondarynamenode-hadoop.out
16/03/23 12:17:37 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
[hadoopadmin@hadoop ~]$ jps
2881 DataNode
2758 NameNode
3142 Jps
3039 SecondaryNameNode
[hadoopadmin@hadoop ~]$
o7jaxewo

o7jaxewo1#

不再有jobtracker和tasktracker了。我们有nodemanager和resourcemanager。在这里您只是启动了dfs服务而不是启动了yarn服务,来启动yarn服务运行 start-yarn.sh 只有Yarn相关的服务才会启动。
如果要启动所有服务,请运行 start-all.sh (不太好的做法)

相关问题