Did this work for you @newbie? On Wed, Mar 7, 2012 at 10:21 PM, anil gupta <anilg...@buffalo.edu> wrote:
> Hi, > > Are you able to access and perform CRUD operation through HBase shell > properly? If yes, then please remove the 127.0.0.1 i.e localhost entries > from /etc/hosts file across the cluster. Restart the cluster and things > would be fine. > > > Thanks, > Anil > > On Wed, Mar 7, 2012 at 6:42 AM, tousif <tou...@moonraft.com> wrote: > > > check your etc/hosts file.. both localhost and your host might be > > pointing to same. > > > > On Wed, Mar 7, 2012 at 7:50 PM, newbie24 <shripri...@hotmail.com> wrote: > > > > > > > > Is there a way to close all the existing connections in hadoop? > > > > > > Please let me know. > > > > > > > > > > > > > > > newbie24 wrote: > > > > > > > > Hi, > > > > > > > > I'm new to hadoop. > > > > > > > > I'm trying to connect to hbase and accessing these records but I get > > this > > > > issue.. > > > > > > > > > > > > 2012-03-06 16:56:03,923 WARN org.apache.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) > > > > 2012-03-06 16:56:05,782 INFO org.apache.zookeeper.ClientCnxn: Opening > > > > socket connection to server localhost/127.0.0.1:2181 > > > > 2012-03-06 16:56:05,783 WARN org.apache.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) > > > > 2012-03-06 16:56:07,569 INFO org.apache.zookeeper.ClientCnxn: Opening > > > > socket connection to server localhost/127.0.0.1:2181 > > > > 2012-03-06 16:56:07,570 WARN org.apache.zookeeper.ClientCnxn: Session > > 0x0 > > > > for server null, unexpected error, closing socket connection and > > > > attempting reconnect > > > > java.net.ConnectException: Connection refused > > > > > > > > ********************** > > > > > > > > When I access base and try to list the entries this is what I see.. > > > > > > > > > > > > ERROR: 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. > > > > > > > > > > > > Can someone please help me... > > > > > > > > Thanks > > > > > > > > > > -- > > > View this message in context: > > > http://old.nabble.com/help-to-fix-this-issue-tp33457865p33458308.html > > > Sent from the Hadoop core-user mailing list archive at Nabble.com. > > > > > > > > > > > > -- > > Regards > > Tousif > > +918050227279 > > > > > > -- > Thanks & Regards, > Anil Gupta >