【hadoop】Connection Refused的排查方案

一. 官方 Connection Refused的排查方案

Unless there is a configuration error at either end, a common cause for this is the Hadoop service isn't running.

This stack trace is very common when the cluster is being shut down -because at that point Hadoop services are being torn down across the cluster, which is visible to those services and applications which haven't been shut down themselves. Seeing this error message during cluster shutdown is not anything to worry about.

If the application or cluster is not working, and this message appears in the log, then it is more serious.

The exception text declares both the hostname and the port to which the connection failed. The port can be used to identify the service. For example, port 9000 is the HDFS port. Consult the Ambari port reference, and/or those of the supplier of your Hadoop management tools.

  1.  Check the hostname the client using is correct. If it's in a Hadoop configuration option: examine it carefully, try doing an ping by hand.

  2. Check the IP address the client is trying to talk to for the hostname is correct.

  3. Make sure the destination address in the exception isn't 0.0.0.0 -this means that you haven't actually configured the client with the real address for that service, and instead it is picking up the server-side property telling it to listen on every port for connections.

  4. If the error message says the remote service is on "127.0.0.1" or "localhost" that means the configuration file is telling the client that the service is on the local server. If your client is trying to talk to a remote system, then your configuration is broken.

  5. Check that there isn't an entry for your hostname mapped to 127.0.0.1 or 127.0.1.1 in /etc/hosts (Ubuntu is notorious for this).

  6. Check the port the client is trying to talk to using matches that the server is offering a service on. The netstat command is useful there.

  7. On the server, try a telnet localhost <port> to see if the port is open there.

  8. On the client, try a telnet <server> <port> to see if the port is accessible remotely.

  9. Try connecting to the server/port from a different machine, to see if it just the single client misbehaving.

  10. If your client and the server are in different subdomains, it may be that the configuration of the service is only publishing the basic hostname, rather than the Fully Qualified Domain Name. The client in the different subdomain can be unintentionally attempt to bind to a host in the local subdomain —and failing.

  11. If you are using a Hadoop-based product from a third party, -please use the support channels provided by the vendor.

  12. Please do not file bug reports related to your problem, as they will be closed as Invalid

See also Server Overflow

None of these are Hadoop problems, they are hadoop, host, network and firewall configuration issues. As it is your cluster, only you can find out and track down the problem.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
问题中提到的"Connection refused: no further information"是一种常见的错误信息,它通常表示无法建立连接或者连接被拒绝。这个错误可以有多种原因,下面给出一些可能的解决方案。 首先,这个错误可能是由于网络问题导致的。请确保你的网络连接正常,并且目标服务器处于可访问状态。 如果网络连接正常,那么这个错误可能是由于目标服务器没有正确运行或者配置不正确导致的。可以根据错误信息中提到的zookeeper问题来排查。根据引用中的描述,你可以尝试删除zookeeper根目录下的zookeeper_server.pid文件,并重新启动zookeeper服务。这可能会解决连接问题。 另外,还有一些其他的可能原因,比如防火墙设置、端口被占用等。你可以检查防火墙设置,确保相关端口是开放的。另外,你还可以尝试使用其他端口来连接目标服务器,看是否可以建立连接。 综上所述,如果在使用IDEA时遇到"Connection refused: no further information"错误,你可以首先检查网络连接,并尝试删除zookeeper_server.pid文件。如果问题仍然存在,可以进一步排查其他可能的原因,例如防火墙设置或端口占用。<span class="em">1</span><span class="em">2</span> #### 引用[.reference_title] - *1* [idea远程操作hdfs Hadoop、Caused by: java.net.ConnectException: Connection refused: no further ...](https://blog.csdn.net/weixin_38625805/article/details/122058577)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [connection refused:no further information](https://blog.csdn.net/qq_45048256/article/details/122311924)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

roman_日积跬步-终至千里

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值