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

  • Post author:
  • Post category:其他



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


解决方法:


1. 确保zookeer集群安装成功。通过jps能够正确显示zookeeper管理进程QuorumPeerMain,具体安装步骤,请参考我的blog

zookeeper集群安装



2. HBase 中的zookeeper配置正确,zookeeper实例应该是奇数个.


        <property>
                <name>hbase.zookeeper.property.clientPort</name>
                <value>2222</value>
                <description>Property from ZooKeeper's config zoo.cfg.
                The port at which the clients will connect.
                </description>
        </property>

        <property>
                <name>hbase.