java.net.ConnectException: Call From server001/192.168.22.130 to server001:9000 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:831) at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:755) at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1515) at org.apache.hadoop.ipc.Client.call(Client.java:1457) at org.apache.hadoop.ipc.Client.call(Client.java:1367) at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:228) at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:116) at com.sun.proxy.$Proxy17.delete(Unknown Source) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.delete(ClientNamenodeProtocolTranslatorPB.java:637)解决办法
时间: 2024-04-27 19:23:09 浏览: 215
这个错误通常是由于无法连接到指定的服务器或端口而导致的。可能的解决方案包括:
1. 确保目标服务器正在运行,并且端口号是正确的。
2. 检查防火墙或网络设置是否阻止了对目标服务器的访问。
3. 尝试使用 telnet 命令测试连接。如果连接失败,则提示一些更具体的错误信息。
4. 检查目标服务器的日志文件,看看是否有任何有用的信息。
5. 如果您有多个网络接口,可能需要使用 -b 选项指定要使用的 IP 地址。
希望这些提示能够帮助您解决问题。
阅读全文