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

转载 2012年03月27日 16:44:16

转自: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>


相关文章推荐

ARN [main-SendThread(db99:2222)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected erro

1. 2014-07-21 17:24:36,310 WARN  [main-SendThread(db99:2222)] zookeeper.ClientCnxn: Session 0x0 for ...

ClientCnxn: Session 0x0 for server null, unexpected error 异常解决

ClientCnxn: Session 0x0 for server null, unexpected error 异常是由于zookeeper配置不成功引起的。      解决方法:      1....

命令行运行Hbase: Session 0x0 for server null, unexpected error

又重新看了下hbase的操作,以前虽说是运行过对Hbase的操作,比如直接的建表,导入数据,或者是使用MR操作Hbase,但是都是在单节点上做的,而且是用eclipse下操作的,不用担心一些包的问题。...

zookeeper Client Session 0x0 for server null解决办法

2013-12-18 09:22:56,884 INFO  [main] zookeeper.ZooKeeper: Client environment:java.library.path=/home...

命令行运行Hbase: Session 0x0 for server null, unexpected error

今天又重新看了下hbase的操作,以前虽说是运行过对Hbase的操作,比如直接的建表,导入数据,或者是使用MR操作Hbase,但是都是在单节点上做的,而且是用eclipse下操作的,不用担心一些包的问...

zookeeper Client Session 0x0 for server null

昨天自己写程序来测试调用单机模式的zookeeper服务。服务的安装不说了,网上太多了。当我安装完毕,在虚拟机本地调用zkCli来调试,没有问题。但在虚拟机外调用,总是连接不上,报错: ...
  • nmgrlq
  • nmgrlq
  • 2012年08月22日 09:06
  • 7783

ARN [main-SendThread(db99:2222)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected erro

本文转自:http://blog.csdn.net/wulantian/article/details/38112305,略修改。 1. 2014-07-21 17:24:36,310 WARN ...

Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

本地tomcat启动连接注册中心,报错信息如下: 2016-11-11 18:27:37,185 INFO  org.apache.zookeeper.ClientCnxn.logStartConn...

zookeeper.ClientCnxn:1057 - Session 0x0 for server null, unexpected error, closing socket connection

"C:\Program Files\Java\jdk1.8.0\bin\java" -ea -Didea.launcher.port=7532 "-Didea.launcher.bin.path=E:...
  • tfy1332
  • tfy1332
  • 2016年04月21日 17:57
  • 3874

zookeeper 大量连接断开重连原因排查

问题现象 最后发现线上的zookeeper的日志zookeeper.out 文件居然有6G,后来设置下日志为滚动输出,参考: http://blog.csdn.net/hengyunabc/artic...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:ClientCnxn: Session 0x0 for server null, unexpected error Connection refused
举报原因:
原因补充:

(最多只允许输入30个字)