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

67 篇文章 0 订阅
54 篇文章 0 订阅

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

现在总结出来该异常的总体解决方向为:是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>


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值