You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Ted Yu <yu...@gmail.com> on 2015/03/28 16:28:50 UTC

Re: Zookeper Error

bq. zookeeper.ClientCnxn: Opening socket connection to server hbase.local/
192.168.15.20:2181

Looks like the connection attempt was to 192.168.15.20 instead of 192.168.1.101
(value for hbase.zookeeper.quorum)

Can you double check config on these two machines ?

Cheers

On Wed, Mar 25, 2015 at 2:00 AM, Ali Rahmani <al...@gmail.com> wrote:

> Hi guys,
> I'v tried to install HBASE 0.98 on a CentOS linux server. I tried different
> settings but always get one specific Zookeeper error message. my final
> configuration is as follow
> /etc/hosts:
> 127.0.0.1 localhost
> 192.168.1.101 node1
> -----------------------------------------
> hbase-site.xml:
> <property>
>     <name>hbase.rootdir</name>
>     <value>file:///hadoop/hbase/hbase-0.98.11-hadoop2/data/</value>
>   </property>
>   <property>
>     <name>hbase.cluster.distributed</name>
>     <value>true</value>
>   </property>
>   <property>
>     <name>hbase.zookeeper.quorum</name>
>     <value>node1</value>
>   </property>
> <property>
>     <name>hbase.zookeeper.property.dataDir</name>
>
> <value>file:///hadoop/hbase/hbase-0.98.11-hadoop2/data/zookeeper</value>
> </property>
> -----------------------------------------
> Error Message:
> 12/04/17 14:36:48 WARN zookeeper.ClientCnxn: Session 0x0 for server null,
> unexpected error, closing socket connection and attempting reconnect
> java.net.ConnectException: Connection refused
>     at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
>     at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
>     at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
> 12/04/17 14:36:49 INFO zookeeper.ClientCnxn: Opening socket connection to
> server hbase.local/192.168.15.20:2181
> 12/04/17 14:36:49 INFO zookeeper.ZooKeeper: Session: 0x0 closed
> org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is able to
> connect to ZooKeeper but the connection closes immediately. This could be a
> sign that the server has too many connections (30 is the default). Consider
> inspecting your ZK server logs for that error and then make sure you are
> reusing HBaseConfiguration as often as you can. See HTable's javadoc for
> more information.
>     at
>
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:155)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:1002)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:304)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:295)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:157)
>     at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:90)
>     at
>
> org.apache.hadoop.hbase.client.HBaseAdmin.checkHBaseAvailable(HBaseAdmin.java:1258)
>     at HBaseDemo.main(HBaseDemo.java:55)
>