分享

刚刚学习hadoop,搭了一个4台centos6.5虚拟机的集群,datanode启动后一会就自己退了

zaipingY 发表于 2017-2-17 11:07:15 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 7426
下面是slave的logs
2017-02-17 03:00:32,991 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting DataNode
STARTUP_MSG:   host = slave1/192.168.1.3
STARTUP_MSG:   args = []
STARTUP_MSG:   version = 0.20.2
STARTUP_MSG:   build = https://svn.apache.org/repos/asf ... ranches/branch-0.20 -r 911707; compiled by 'chrisdo' on Fri Feb 19 08:07:34 UTC 2010
************************************************************/
2017-02-17 03:00:34,423 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 0 time(s).
2017-02-17 03:00:35,426 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 1 time(s).
2017-02-17 03:00:36,428 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 2 time(s).
2017-02-17 03:00:37,460 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 3 time(s).
2017-02-17 03:00:38,462 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 4 time(s).
2017-02-17 03:00:39,463 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 5 time(s).
2017-02-17 03:00:40,465 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 6 time(s).
2017-02-17 03:00:41,467 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 7 time(s).
2017-02-17 03:00:42,469 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 8 time(s).
2017-02-17 03:00:43,472 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 9 time(s).
2017-02-17 03:00:43,478 INFO org.apache.hadoop.ipc.RPC: Server at master/192.168.1.2:9000 not available yet, Zzzzz...
2017-02-17 03:00:45,483 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 0 time(s).
2017-02-17 03:00:46,486 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 1 time(s).
2017-02-17 03:00:47,487 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 2 time(s).
2017-02-17 03:00:48,489 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 3 time(s).
2017-02-17 03:00:49,504 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 4 time(s).
2017-02-17 03:00:50,506 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 5 time(s).
2017-02-17 03:00:51,508 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 6 time(s).
2017-02-17 03:00:52,509 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.2:9000. Already tried 7 time(s).
2017-02-17 03:01:12,679 INFO org.apache.hadoop.hdfs.server.common.Storage: Storage directory /software/hadoop-0.20.2/data is not formatted.
2017-02-17 03:01:12,680 INFO org.apache.hadoop.hdfs.server.common.Storage: Formatting ...
2017-02-17 03:01:12,778 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Registered FSDatasetStatusMBean
2017-02-17 03:01:12,779 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Opened info server at 50010
2017-02-17 03:01:12,780 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Balancing bandwith is 1048576 bytes/s
2017-02-17 03:01:12,887 INFO org.mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2017-02-17 03:01:12,970 INFO org.apache.hadoop.http.HttpServer: Port returned by webServer.getConnectors()[0].getLocalPort() before open() is -1. Opening the listener on 50075
2017-02-17 03:01:12,971 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Waiting for threadgroup to exit, active threads is 0
2017-02-17 03:01:12,972 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.net.BindException: 无法指定被请求的地址
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:437)
        at sun.nio.ch.Net.bind(Net.java:429)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
        at org.apache.hadoop.http.HttpServer.start(HttpServer.java:425)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:375)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:216)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1283)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1238)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1246)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:1368)

2017-02-17 03:01:12,973 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at slave1/192.168.1.3
************************************************************/

已有(2)人评论

跳转到指定楼层
zaipingY 发表于 2017-2-17 11:10:18
纠结了好久,有没有帮忙的
回复

使用道具 举报

easthome001 发表于 2017-2-17 15:33:28
zaipingY 发表于 2017-2-17 11:10
纠结了好久,有没有帮忙的

网络的问题。可能是hosts,防火墙,网络等原因查下,如果不知道可以把hosts,防火墙状态贴出来下。
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条