ClientCnxn: Session 0x0 for server null, unexpected error Connection refused

转自:http://blog.csdn.net/adsitbbs/article/details/6680976

坑爹的异常!这个异常碰到过多次每次有可能会是不同的地方出现问题导致,

现在总结出来该异常的总体解决方向为:是zookeeper访问regionserver时候抛出的,一般是hbase-site.xml中的dns设置有问题,或者dns本身有问题,症状就为regionserver一个或者几个或者全部不能起动,以后再见Session 0x0,就朝着这个方向找吧。

这次抛出是dns服务器换机器了,结果配置文件没有改掉,今天优化hadoop配置参数重启之后就抛出这个一场了,修改后就没问题了。


配置参数记录如下:


<property>
    <name>hbase.zookeeper.dns.interface</name>
    <value>eth1</value>
    <description>The name of the Network Interface from which a ZooKeeper server
      should report its IP address.
    </description>
</property>
<property>
    <name>hbase.zookeeper.dns.nameserver</name>
    <value>X.X.X.111</value>
    <description>The host name or IP address of the name server (DNS)
      which a ZooKeeper server should use to determine the host name used by the
      master for communication and display purposes.
    </description>
</property>
<property>
    <name>hbase.regionserver.dns.interface</name>
    <value>eth1</value>
    <description>The name of the Network Interface from which a region server
      should report its IP address.
    </description>
</property>
<property>
    <name>hbase.regionserver.dns.nameserver</name>
    <value>X.X.X.111</value>
        <value>true</value>
        <description>Time difference of regionserver from master</description>
</property>
<property>
    <name>hbase.zookeeper.dns.interface</name>
    <value>eth1</value>
    <description>The name of the Network Interface from which a ZooKeeper server
      should report its IP address.
    </description>
</property>
<property>
    <name>hbase.zookeeper.dns.nameserver</name>
    <value>X.X.X.111</value>
    <description>The host name or IP address of the name server (DNS)
      which a ZooKeeper server should use to determine the host name used by the
      master for communication and display purposes.
    </description>
</property>
<property>
    <name>hbase.regionserver.dns.interface</name>
    <value>eth1</value>
    <description>The name of the Network Interface from which a region server
      should report its IP address.
    </description>
</property>
<property>
    <name>hbase.regionserver.dns.nameserver</name>
    <value>X.X.X.111</value>
    <description>The host name or IP address of the name server (DNS)
      which a region server should use to determine the host name used by the
      master for communication and display purposes.
    </description>
</property>
<property>
    <name>hbase.master.dns.interface</name>
    <value>eth1</value>
    <description>The name of the Network Interface from which a master
      should report its IP address.
    </description>
</property>
<property>
    <name>hbase.master.dns.nameserver</name>
    <value>X.X.X.111</value>
    <description>The host name or IP address of the name server (DNS)
      which a master should use to determine the host name used
      for communication and display purposes.
    </description>
</property>


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个警告信息表明HBase在与ZooKeeper建立连接时遇到了问题。具体来说,它指出了一个拒绝连接的异常,并且尝试关闭套接字连接并重新连接。\[2\] 这个问题可能是由于几个原因引起的。首先,可能是由于网络问题导致HBase无法与ZooKeeper建立连接。你可以检查网络连接是否正常,并确保HBase和ZooKeeper服务器之间的通信没有问题。 另外,这个问题也可能是由于Hadoop文件损坏引起的。你可以尝试删除Hadoop上的损坏文件,并执行命令"hdfs fsck / -delete"来删除HDFS上的HBase文件。然后,查询ZooKeeper上的节点信息,并将HBase节点信息从ZooKeeper上删除。这样,在重新登录HBase时,它会重新在ZooKeeper上注册新的信息。\[3\] 如果以上方法都没有解决问题,你可以查看HBase和ZooKeeper的日志文件,以获取更多的错误信息和上下文。这些日志文件通常位于HBase和ZooKeeper的安装目录下的"logs"文件夹中。 总结起来,HBase的这个警告信息表明它在与ZooKeeper建立连接时遇到了问题。你可以检查网络连接、删除损坏的文件以及查看日志文件来解决这个问题。希望这些信息对你有帮助! #### 引用[.reference_title] - *1* [zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and a](https://blog.csdn.net/qq_41910230/article/details/81017406)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Hbase 显示已经启动 但群停无法使用报:zookeeper.ClientCnxn: Session 0x0 for server null, unexpected ...](https://blog.csdn.net/LHJ_548936/article/details/119010782)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值