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

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.zookeeper.quorum</name>
                <value>machine-0,machine-1,machine-2</value>
                <description>Comma separated list of servers in the ZooKeeper Quorum.
                                                         For example,
                                                         "host1.mydomain.com,host2.mydomain.com".
                                                         By default this is set to localhost for local and

                                                         pseudo-distributed modes of operation. For a
                                                         fully-distributed setup, this should be set to a 
full
                                                         list of ZooKeeper quorum servers. If
                                                         HBASE_MANAGES_ZK is set in hbase-env.sh
                                                         this is the list of servers which we will start/s
top
                                                         ZooKeeper on.
                </description>
        </property>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值