Would it be possible for you to pastebin a much bigger portion of the hbase log?
Thx, J-D On Tue, Apr 17, 2012 at 10:35 AM, Xin Liu <codeoe...@gmail.com> wrote: > Hi there, > > I setup hadoop and hbase on top of EC2 in Pseudo-distributed mode. I > can use hbase shell to connect. However, when I use java client to > connect, I get the following error at client: > > 12/04/17 10:21:06 INFO zookeeper.RecoverableZooKeeper: The identifier > of this process is 9078@localhost.localdomain > 12/04/17 10:21:06 INFO client.ZooKeeperSaslClient: Client will not > SASL-authenticate because the default JAAS configuration section > 'Client' could not be found. If you are not using SASL, you may ignore > this. On the other hand, if you expected SASL to work, please fix your > JAAS configuration. > 12/04/17 10:21:06 INFO zookeeper.ClientCnxn: Socket connection > established to domU-12-31-39-12-FA-0A.compute-1.internal/23.22.15.27:2181, > initiating session > 12/04/17 10:21:06 INFO zookeeper.ClientCnxn: Session establishment > complete on server > domU-12-31-39-12-FA-0A.compute-1.internal/23.22.15.27:2181, sessionid > = 0x136c1355db70006, negotiated timeout = 40000 > 12/04/17 10:21:07 INFO > client.HConnectionManager$HConnectionImplementation: getMaster attempt > 0 of 10 failed; retrying after sleep of 1000 > java.net.ConnectException: Connection refused > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:701) > at > org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) > at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489) > at > org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupConnection(HBaseClient.java:328) > > In hbase log, I see: > > 2012-04-17 17:21:01,172 INFO > org.apache.zookeeper.server.ZooKeeperServer: Client attempting to > establish new session at /171.69.154.55:60201 > 2012-04-17 17:21:01,175 INFO > org.apache.zookeeper.server.ZooKeeperServer: Established session > 0x136c1355db70006 with negotiated timeout 40000 for client > /171.69.154.55:60201 > 2012-04-17 17:21:04,090 WARN > org.apache.zookeeper.server.NIOServerCnxn: caught end of stream > exception > EndOfStreamException: Unable to read additional data from client > sessionid 0x136c1355db70006, likely client has closed socket > at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:220) > at > org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:224) > at java.lang.Thread.run(Thread.java:722) > 2012-04-17 17:21:04,094 INFO > org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection > for client /171.69.154.55:60201 which had sessionid 0x136c1355db70006 > > I have opened EC2 security list for all TCP traffic. I used EC2 > private DNS for zk quorum. At client, the private DNS is also used. An > IP to private DNS mapping is added to my /etc/hosts > > Can someone please help? I think I'm missing a small thing but > couldn't figure out... > > Thanks, > Xin