2 u012826756 u012826756 于 2018.01.02 02:41 提问

阿里云centos7.3+hadoop2.8搭建出错 20C

18/01/02 02:35:18 WARN ipc.Client: Failed to connect to server: node1/59.110.175.201:9900: try once and fail.
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:685)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:788)
at org.apache.hadoop.ipc.Client$Connection.access$3500(Client.java:410)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1550)
at org.apache.hadoop.ipc.Client.call(Client.java:1381)
at org.apache.hadoop.ipc.Client.call(Client.java:1345)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:227)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:116)
at com.sun.proxy.$Proxy10.getFsStats(Unknown Source)
at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getStats(ClientNamenodeProtocolTranslatorPB.java:635)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:409)
at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeMethod(RetryInvocationHandler.java:163)
at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invoke(RetryInvocationHandler.java:155)
at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeOnce(RetryInvocationHandler.java:95)
at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:346)
at com.sun.proxy.$Proxy11.getStats(Unknown Source)
at org.apache.hadoop.hdfs.DFSClient.getStateByIndex(DFSClient.java:2088)
at org.apache.hadoop.hdfs.DFSClient.getDiskStatus(DFSClient.java:2097)
at org.apache.hadoop.hdfs.DistributedFileSystem.getStatus(DistributedFileSystem.java:1225)
at org.apache.hadoop.fs.FileSystem.getStatus(FileSystem.java:2351)
at org.apache.hadoop.hdfs.tools.DFSAdmin.report(DFSAdmin.java:488)
at org.apache.hadoop.hdfs.tools.DFSAdmin.run(DFSAdmin.java:1975)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.hadoop.hdfs.tools.DFSAdmin.main(DFSAdmin.java:2168)
report: Call From iz2zecenhiql2dv4uf8lagz/192.168.1.175 to node1:9900 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

**hosts文件

#127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

59.110.175.201 node1

39.106.197.247 node2

120.79.131.63 node3

node1和node2和node3之间互相能够ping通,也可以无密连接**

图片说明
node1的主机公网IP是59.110.175.201 内网IP是192.168.1.175

4个回答

jjk_02027
jjk_02027   2018.01.02 09:14

1、检查iz2zecenhiql2dv4uf8lagz/192.168.1.175到 node1/59.110.175.201:9900的链路是否连通的
2、检查防水墙

u012826756
u012826756 互相能ping通,防火墙也已经关闭了,但是还是不可以
4 个月之前 回复
lht931942788
lht931942788   2018.01.02 09:16

看看你的 hosts 文件 ip 是不是配错了,再不就是配置文件的端口号配错了

qq_37935896
qq_37935896   2018.01.02 11:13

看是否能ping通主机,无密连接是否正常,hosts 文件配置是否正确

apsbb
apsbb   2018.01.02 11:57

hosts 文件可能有问题

u012826756
u012826756 #127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 59.110.175.201 node1 39.106.197.247 node2 120.79.131.63 node3
4 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!