请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

jps个别线程没有起来?

把/etc/hosts下的localhost和hadoop000改成了自己主机的IP,跟着视频做下来发现jps的时候没有datanode的线程

正在回答

2回答

看dn的日志

0 回复 有任何疑惑可以回复我~
  • 提问者 冯世宁 #1
    [hadoop@hadoop000 ~]$ tail -f  /home/hadoop/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-hadoop-datanode-hadoop000.log
            at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:829)
            at java.lang.Thread.run(Thread.java:745)
    2018-01-12 12:41:54,238 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Ending block pool service for: Block pool <registering> (Datanode Uuid unassigned) service to hadoop000/10.0.0.9:8020
    2018-01-12 12:41:54,346 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Removed Block pool <registering> (Datanode Uuid unassigned)
    2018-01-12 12:41:56,347 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Exiting Datanode
    2018-01-12 12:41:56,348 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 0
    2018-01-12 12:41:56,351 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG: 
    /************************************************************
    SHUTDOWN_MSG: Shutting down DataNode at hadoop000/10.0.0.9
    ************************************************************/
    回复 有任何疑惑可以回复我~ 2018-01-12 13:33:34
  • Michael_PK 回复 提问者 冯世宁 #2
    根据错先自己搜索,别一遇到错就全贴出来
    回复 有任何疑惑可以回复我~ 2018-01-12 14:11:00
  • 提问者 冯世宁 回复 Michael_PK #3
    您批评的对,不能一出错就全贴出来,应该自己上网查的,自己查了查是data和name的clusterID不一致,修改一直就好了,以后出现问题会先百度的,十分感谢老师和QQ群的管理.(ps:其实是想粘贴图片的但是这个评论好像不能粘贴图片)
    回复 有任何疑惑可以回复我~ 2018-01-12 14:45:45
提问者 冯世宁 2018-01-12 12:49:41

[hadoop@hadoop000 bin]$ cd ../sbin/

[hadoop@hadoop000 sbin]$ pwd

/home/hadoop/app/hadoop-2.6.0-cdh5.7.0/sbin

[hadoop@hadoop000 sbin]$ ./start-dfs.sh 

18/01/12 12:41:40 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

Starting namenodes on [hadoop000]

hadoop000: starting namenode, logging to /home/hadoop/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-hadoop-namenode-hadoop000.out

hadoop000: starting datanode, logging to /home/hadoop/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-hadoop-datanode-hadoop000.out

Starting secondary namenodes [0.0.0.0]

0.0.0.0: Address 127.0.0.1 maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

0.0.0.0: starting secondarynamenode, logging to /home/hadoop/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-hadoop-secondarynamenode-hadoop000.out

18/01/12 12:42:02 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

[hadoop@hadoop000 sbin]$ jps

3384 Jps

2965 NameNode

3275 SecondaryNameNode

[hadoop@hadoop000 sbin]$ 


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信