我安装了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 ~]$
答案 0 :(得分:1)
不再有JobTracker和TaskTracker。我们有NodeManager和resourceManager。在这里你刚开始dfs服务没有启动纱线服务,开始纱线服务运行start-yarn.sh
然后只开始纱线相关的服务。
如果你想开始所有服务start-all.sh
(不是一个好习惯)