分享

hadoop2.6.0集群格式化后,提示DFS使用为0,剩余也为0

hapjin 发表于 2015-5-1 08:37:13 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 3 24625
集群中的namenode ,datanode 都能够正常启动。不知是什么原因??

HDFS:50070页面如下:

HDFS

HDFS


namenode 日志如下:(并没有error)

429 2015-05-01 08:33:39,450 INFO org.apache.hadoop.hdfs.server.namenode.FSEditLog: Starting log segment at 33
430 2015-05-01 08:34:07,070 INFO org.apache.hadoop.hdfs.server.blockmanagement.CacheReplicationMonitor: Rescanning after 30000 milliseconds
431 2015-05-01 08:34:07,070 INFO org.apache.hadoop.hdfs.server.blockmanagement.CacheReplicationMonitor: Scanned 0 directive(s) and 0 block(s) in 0 millisecond(s).
432 2015-05-01 08:34:37,071 INFO org.apache.hadoop.hdfs.server.blockmanagement.CacheReplicationMonitor: Rescanning after 30001 milliseconds
433 2015-05-01 08:34:37,071 INFO org.apache.hadoop.hdfs.server.blockmanagement.CacheReplicationMonitor: Scanned 0 directive(s) and 0 block(s) in 0 millisecond(s).
434 2015-05-01 08:34:39,558 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Roll Edit Log from 127.0.0.1
435 2015-05-01 08:34:39,558 INFO org.apache.hadoop.hdfs.server.namenode.FSEditLog: Rolling edit logs
436 2015-05-01 08:34:39,558 INFO org.apache.hadoop.hdfs.server.namenode.FSEditLog: Ending log segment 33
437 2015-05-01 08:34:39,558 INFO org.apache.hadoop.hdfs.server.namenode.FSEditLog: Number of transactions: 2 Total time for transactions(ms): 0 Number of transactions bat    ched in Syncs: 0 Number of syncs: 2 SyncTimes(ms): 79
438 2015-05-01 08:34:39,574 INFO org.apache.hadoop.hdfs.server.namenode.FSEditLog: Number of transactions: 2 Total time for transactions(ms): 0 Number of transactions bat    ched in Syncs: 0 Number of syncs: 3 SyncTimes(ms): 95
439 2015-05-01 08:34:39,575 INFO org.apache.hadoop.hdfs.server.namenode.FileJournalManager: Finalizing edits file /home/hadoop/tmp-hadoop/dfs/name/current/edits_inprogres    s_0000000000000000033 -> /home/hadoop/tmp-hadoop/dfs/name/current/edits_0000000000000000033-0000000000000000034
440 2015-05-01 08:34:39,575 INFO org.apache.hadoop.hdfs.server.namenode.FSEditLog: Starting log segment at 35
441 2015-05-01 08:35:07,071 INFO org.apache.hadoop.hdfs.server.blockmanagement.CacheReplicationMonitor: Rescanning after 30000 milliseconds
442 2015-05-01 08:35:07,071 INFO org.apache.hadoop.hdfs.server.blockmanagement.CacheReplicationMonitor: Scanned 0 directive(s) and 0 block(s) in 0 millisecond(s).




来自群组: Hadoop技术组

已有(3)人评论

跳转到指定楼层
hapjin 发表于 2015-5-1 08:43:32
我发现是datanode无法连接到namenode上???这个怎么解决呢?
DataNode的日志信息如下:
DataNode: Problem connecting to server: controller/192.168.1.186:9000
2015-05-01 08:39:12,273 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: controller/192.168.1.186:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
回复

使用道具 举报

bob007 发表于 2015-5-1 10:00:36
hapjin 发表于 2015-5-1 08:43
我发现是datanode无法连接到namenode上???这个怎么解决呢?
DataNode的日志信息如下:
DataNode: Prob ...

确保所有进程都在,不会存在僵死进程解决办法:
重启hadoop


查看hosts,确保注释掉127.0.1.1


更多原因看
hadoop2.7 运行wordcount
回复

使用道具 举报

hapjin 发表于 2015-5-3 17:03:10
bob007 发表于 2015-5-1 10:00
确保所有进程都在,不会存在僵死进程解决办法:
重启hadoop

解决了,是/etc/hosts文件出了问题,感谢啊。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条