You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Jim X <ji...@gmail.com> on 2011/02/01 04:16:48 UTC

Annoying message from ZooKeeper

I use HBase 0.20.6 in the latest cygwin under Window Vista. I got the
following error when I created and deleted table from a Java client. A
table can be created, listed and deleted. But the error is just
annoying.


11/01/31 22:09:18 INFO zookeeper.ZooKeeper: Initiating client
connection, connectString=localhost:2181 sessionTimeout=60000
watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@78e61fd1
11/01/31 22:09:18 INFO zookeeper.ClientCnxn:
zookeeper.disableAutoWatchReset is false
11/01/31 22:09:18 INFO zookeeper.ClientCnxn: Attempting connection to
server localhost/0:0:0:0:0:0:0:1:2181
11/01/31 22:09:18 WARN zookeeper.ClientCnxn: Exception closing session
0x0 to sun.nio.ch.SelectionKeyImpl@356f144c
java.net.SocketException: Address family not supported by protocol
family: connect
	at sun.nio.ch.Net.connect(Native Method)
	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
	at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:871)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:895)
11/01/31 22:09:18 WARN zookeeper.ClientCnxn: Ignoring exception during
shutdown input
java.nio.channels.ClosedChannelException
	at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:638)
	at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
	at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:999)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
11/01/31 22:09:18 WARN zookeeper.ClientCnxn: Ignoring exception during
shutdown output
java.nio.channels.ClosedChannelException
	at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:649)
	at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
	at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1004)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
11/01/31 22:09:18 INFO client.HConnectionManager$TableServers:
getMaster attempt 0 of 10 failed; retrying after sleep of 1000
java.io.IOException:
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /hbase/master
	at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java:394)
	at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readMasterAddressOrThrow(ZooKeeperWrapper.java:298)
	at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getMaster(HConnectionManager.java:339)
	at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:72)

Re: Annoying message from ZooKeeper

Posted by Jim X <ji...@gmail.com>.
It works fine after I added one line of configuration. Thanks.

On Tue, Feb 1, 2011 at 2:35 AM, Mingjie Lai <mj...@gmail.com> wrote:
>>11/01/31 22:09:18 INFO zookeeper.ClientCnxn: Attempting connection to
> server localhost/0:0:0:0:0:0:0:1:2181
>
> You enabled IPv6?
>
> Someone discussed about it before:
> http://www.mail-archive.com/user@hbase.apache.org/msg01175.html
>
> -mingjie
>
>
> On 01/31/2011 07:16 PM, Jim X wrote:
>>
>> I use HBase 0.20.6 in the latest cygwin under Window Vista. I got the
>> following error when I created and deleted table from a Java client. A
>> table can be created, listed and deleted. But the error is just
>> annoying.
>>
>>
>> 11/01/31 22:09:18 INFO zookeeper.ZooKeeper: Initiating client
>> connection, connectString=localhost:2181 sessionTimeout=60000
>>
>> watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@78e61fd1
>> 11/01/31 22:09:18 INFO zookeeper.ClientCnxn:
>> zookeeper.disableAutoWatchReset is false
>> 11/01/31 22:09:18 INFO zookeeper.ClientCnxn: Attempting connection to
>> server localhost/0:0:0:0:0:0:0:1:2181
>> 11/01/31 22:09:18 WARN zookeeper.ClientCnxn: Exception closing session
>> 0x0 to sun.nio.ch.SelectionKeyImpl@356f144c
>> java.net.SocketException: Address family not supported by protocol
>> family: connect
>>        at sun.nio.ch.Net.connect(Native Method)
>>        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
>>        at
>> org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:871)
>>        at
>> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:895)
>> 11/01/31 22:09:18 WARN zookeeper.ClientCnxn: Ignoring exception during
>> shutdown input
>> java.nio.channels.ClosedChannelException
>>        at
>> sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:638)
>>        at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
>>        at
>> org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:999)
>>        at
>> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
>> 11/01/31 22:09:18 WARN zookeeper.ClientCnxn: Ignoring exception during
>> shutdown output
>> java.nio.channels.ClosedChannelException
>>        at
>> sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:649)
>>        at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
>>        at
>> org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1004)
>>        at
>> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
>> 11/01/31 22:09:18 INFO client.HConnectionManager$TableServers:
>> getMaster attempt 0 of 10 failed; retrying after sleep of 1000
>> java.io.IOException:
>> org.apache.zookeeper.KeeperException$ConnectionLossException:
>> KeeperErrorCode = ConnectionLoss for /hbase/master
>>        at
>> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java:394)
>>        at
>> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readMasterAddressOrThrow(ZooKeeperWrapper.java:298)
>>        at
>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getMaster(HConnectionManager.java:339)
>>        at
>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:72)
>>
>

Re: Annoying message from ZooKeeper

Posted by Mingjie Lai <mj...@gmail.com>.
 >11/01/31 22:09:18 INFO zookeeper.ClientCnxn: Attempting connection to
server localhost/0:0:0:0:0:0:0:1:2181

You enabled IPv6?

Someone discussed about it before:
http://www.mail-archive.com/user@hbase.apache.org/msg01175.html

-mingjie


On 01/31/2011 07:16 PM, Jim X wrote:
> I use HBase 0.20.6 in the latest cygwin under Window Vista. I got the
> following error when I created and deleted table from a Java client. A
> table can be created, listed and deleted. But the error is just
> annoying.
>
>
> 11/01/31 22:09:18 INFO zookeeper.ZooKeeper: Initiating client
> connection, connectString=localhost:2181 sessionTimeout=60000
> watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@78e61fd1
> 11/01/31 22:09:18 INFO zookeeper.ClientCnxn:
> zookeeper.disableAutoWatchReset is false
> 11/01/31 22:09:18 INFO zookeeper.ClientCnxn: Attempting connection to
> server localhost/0:0:0:0:0:0:0:1:2181
> 11/01/31 22:09:18 WARN zookeeper.ClientCnxn: Exception closing session
> 0x0 to sun.nio.ch.SelectionKeyImpl@356f144c
> java.net.SocketException: Address family not supported by protocol
> family: connect
> 	at sun.nio.ch.Net.connect(Native Method)
> 	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
> 	at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:871)
> 	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:895)
> 11/01/31 22:09:18 WARN zookeeper.ClientCnxn: Ignoring exception during
> shutdown input
> java.nio.channels.ClosedChannelException
> 	at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:638)
> 	at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
> 	at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:999)
> 	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
> 11/01/31 22:09:18 WARN zookeeper.ClientCnxn: Ignoring exception during
> shutdown output
> java.nio.channels.ClosedChannelException
> 	at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:649)
> 	at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
> 	at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1004)
> 	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
> 11/01/31 22:09:18 INFO client.HConnectionManager$TableServers:
> getMaster attempt 0 of 10 failed; retrying after sleep of 1000
> java.io.IOException:
> org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /hbase/master
> 	at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java:394)
> 	at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readMasterAddressOrThrow(ZooKeeperWrapper.java:298)
> 	at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getMaster(HConnectionManager.java:339)
> 	at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:72)
>