hadoop namenode Connection refused

装了个单机伪分布式做测试环境,莫名其炒地就各种Connection Refused

[penggl@localhost exe]$ ../bin/hadoop jar wbgdcmcc_dg.jar resplogcdrgenerator 20140821
14/09/16 09:52:55 INFO domain.RespLogCdrGeneratorDomain: inputPath:/logs/resplog/20140821
14/09/16 09:52:55 INFO domain.RespLogCdrGeneratorDomain: outputPath:/datas/respcdr/201408/20140821
14/09/16 09:52:57 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/09/16 09:52:58 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/09/16 09:52:59 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/09/16 09:53:00 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/09/16 09:53:01 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/09/16 09:53:02 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/09/16 09:53:03 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/09/16 09:53:04 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/09/16 09:53:05 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/09/16 09:53:06 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
java.net.ConnectException: Call to localhost/127.0.0.1:9000 failed on connection exception: java.net.ConnectException: Connection refused

jps后发现namenode没在

19181 Jps
17148 TaskTracker
19129 SecondaryNameNode
18981 DataNode
2360 jar
17007 JobTracker


然后各种重启,各种不知明的参数往配置文件加,效果无效,后来bin/stop-all.sh,把data1 data2 datalog1 datalog2,还有tmp下的全删掉了,然后bin/hadoop namenode -format,然后bin/start-all.sh,再jps,发现namenode出现了

19894 DataNode
20058 SecondaryNameNode
2360 jar
19733 NameNode
20152 JobTracker
20343 Jps
20293 TaskTracker


然后

[penggl@localhost hadoop-1.2.1]$ bin/hadoop dfsadmin -report
Configured Capacity: 474285277184 (441.71 GB)
Present Capacity: 418013261824 (389.31 GB)
DFS Remaining: 418013192192 (389.31 GB)
DFS Used: 69632 (68 KB)
DFS Used%: 0%
Under replicated blocks: 1
Blocks with corrupt replicas: 0
Missing blocks: 0

-------------------------------------------------
Datanodes available: 1 (1 total, 0 dead)

Name: 127.0.0.1:50010
Decommission Status : Normal
Configured Capacity: 474285277184 (441.71 GB)
DFS Used: 69632 (68 KB)
Non DFS Used: 56272015360 (52.41 GB)
DFS Remaining: 418013192192(389.31 GB)
DFS Used%: 0%
DFS Remaining%: 88.14%
Last contact: Tue Sep 16 10:54:24 CST 2014




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值