I found some more information. Here's how Thrift tries to connect to
zookeeper:

2010-10-08 17:18:37,049 INFO org.apache.zookeeper.ClientCnxn: Socket
connection established to localhost/fe80:0:0:0:0:0:0:1%1:2181, initiating
session
2010-10-08 17:18:37,064 INFO org.apache.zookeeper.ClientCnxn: Session
establishment complete on server localhost/fe80:0:0:0:0:0:0:1%1:2181,
sessionid = 0x12b8e5a7b240002, negotiated timeout = 60000


For one thing, the client never gets a response from the server. For another
thing, Thrift is using ipv6 for some reason. Very confused.

Adit





On Fri, Oct 8, 2010 at 4:08 PM, aditya bhargava <[email protected]>wrote:

> Yes, I can telnet into everything.
>
>
>
> On Fri, Oct 8, 2010 at 2:59 PM, Jean-Daniel Cryans <[email protected]>wrote:
>
>> IPV6 is indeed bad, you should change your OS configuration.
>>
>> Does telnet on localhost 2181 work?
>>
>> J-D
>>
>> On Thu, Oct 7, 2010 at 11:30 PM, aditya bhargava
>> <[email protected]> wrote:
>> >  I'm running into a bizarre issue with Thrift and Zookeeper. I'm using
>> it
>> > from Ruby, and Hbase throws be an IOError each time. Here's what the log
>> > says:
>> >
>> > 2010-10-07 19:42:05,056 INFO org.apache.zookeeper.ZooKeeper: Client
>> >
>> environment:user.dir=/Users/batman/Documents/Work/scribox/Darwin-x86_64/hbase
>> > 2010-10-07 19:42:05,058 INFO org.apache.zookeeper.ZooKeeper: Initiating
>> > client connection, connectString=localhost:2181 sessionTimeout=60000
>> > watcher=org.apache.hadoop.hbase.zookeeper.zookeeperwrap...@1d2940b3
>> > 2010-10-07 19:42:05,087 INFO org.apache.zookeeper.ClientCnxn: Opening
>> socket
>> > connection to server localhost/fe80:0:0:0:0:0:0:1%1:2181
>> > 2010-10-07 19:42:05,090 DEBUG
>> > org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper:
>> >
>> <localhost:/hbase,org.apache.hadoop.hbase.client.HConnectionManager>Connected
>> > to zookeeper again
>> > 2010-10-07 19:42:05,102 INFO org.apache.zookeeper.ClientCnxn: Socket
>> > connection established to localhost/fe80:0:0:0:0:0:0:1%1:2181,
>> initiating
>> > session
>> > 2010-10-07 19:42:05,111 INFO org.apache.zookeeper.ClientCnxn: Unable to
>> read
>> > additional data from server sessionid 0x0, likely server has closed
>> socket,
>> > closing socket connection and attempting reconnect
>> > 2010-10-07 19:42:05,229 INFO
>> > org.apache.hadoop.hbase.client.HConnectionManager$TableServers:
>> getMaster
>> > attempt 0 of 4 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:481)
>> > at
>> >
>> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readMasterAddressOrThrow(ZooKeeperWrapper.java:377)
>> >  at
>> >
>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getMaster(HConnectionManager.java:381)
>> > at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:78)
>> >  at
>> >
>> org.apache.hadoop.hbase.thrift.ThriftServer$HBaseHandler.<init>(ThriftServer.java:239)
>> > at
>> >
>> org.apache.hadoop.hbase.thrift.ThriftServer.doMain(ThriftServer.java:1059)
>> >  at
>> org.apache.hadoop.hbase.thrift.ThriftServer.main(ThriftServer.java:1116)
>> > Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException:
>> > KeeperErrorCode = ConnectionLoss for /hbase/master
>> >  at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
>> > at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
>> >  at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:921)
>> > at
>> >
>> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java:477)
>> >
>> >
>> > I'm really unsure of what is going on. It also looks like Hbase or
>> Zookeeper
>> > is using ipv6 by default, and I don't know why. Has anyone run into
>> this?
>> >
>> > Adit
>> >
>>
>
>
>
> --
> wefoundland.com
>



-- 
wefoundland.com

Reply via email to