手机版
你好,游客 登录 注册
背景:
阅读新闻

Hadoop DataNode无法连接NameNode问题,注意/etc/hosts内容

[日期:2012-10-09] 来源:Linux社区  作者:JavaShooter [字体: ]

早上检查任务执行情况,发现相关存储任务失败,检查Hadoop相关状态(hadoop dfsadmin -report)发现数据节点一个也没有识别。

检查数据节点日志hadoop-hadoop-datanode.log发现有

2012-10-09 09:18:25,661 INFO org.apache.hadoop.ipc.RPC: Server at host137/192.168.6.137:9000 not available yet, Zzzzz...
2012-10-09 09:18:27,662 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 0 time(s).
2012-10-09 09:18:28,663 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 1 time(s).
2012-10-09 09:18:29,664 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 2 time(s).
2012-10-09 09:18:30,665 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 3 time(s).
2012-10-09 09:18:31,666 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 4 time(s).
2012-10-09 09:18:32,667 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 5 time(s).
2012-10-09 09:18:33,667 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 6 time(s).
2012-10-09 09:18:34,668 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 7 time(s).
2012-10-09 09:18:35,669 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 8 time(s).
2012-10-09 09:18:36,670 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: host137/192.168.6.137:9000. Already tried 9 time(s).

这样的信息。DataNode无法连接到NameNode造成。

之前无此问题,后检查到/etc/hosts发现有人修改了主机到ip的映射内容。

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款