老师您好,我想问一下我启动dfs的时候DataNode启动不了了,是为什么呢?

来源:1-20 -YARN环境搭建及提交作业到YARN上运行

陈素素

2019-03-20

[hadoop@hadoop001 sbin]$ ./start-dfs.sh
19/03/20 04:57:23 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
Starting namenodes on [hadoop001]
hadoop001: namenode running as process 21103. Stop it first.
localhost: starting datanode, logging to /home/hadoop/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-hadoop-datanode-hadoop001.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: secondarynamenode running as process 21386. Stop it first.
19/03/20 04:57:32 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
[hadoop@hadoop001 sbin]$ jps
21386 SecondaryNameNode
21103 NameNode
22428 Jps

写回答

2回答

Michael_PK

2019-03-20

去logs目录下,看data node的日志信息。估计是cluster ID的问题。

0
4
陈素素
回复
Michael_PK
非常感谢老师,这样做了就好了。
2019-03-21
共4条回复

Michael_PK

2019-03-20

你去看下日志

0
0

以慕课网日志分析为例 进入大数据Spark SQL的世界

快速转型大数据:Hadoop,Hive,SparkSQL步步为赢

1644 学习 · 1129 问题

查看课程