|
newbie24
2012-03-07, 13:10
tousif
2012-03-07, 13:16
newbie24
2012-03-07, 13:20
tousif
2012-03-07, 13:24
tousif
2012-03-07, 13:49
newbie24
2012-03-07, 14:20
newbie24
2012-03-07, 14:20
tousif
2012-03-07, 14:42
anil gupta
2012-03-07, 16:51
Subir S
2012-03-08, 05:54
|
-
help to fix this issuenewbie24 2012-03-07, 13:10
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-tp33457865p33457865.html Sent from the Hadoop core-user mailing list archive at Nabble.com.
-
Re: help to fix this issuetousif 2012-03-07, 13:16
did you add these conf properties in hbase site xml???
<property> <name>hbase.rootdir</name> <value>hdfs://address:54310/hbase</value> </property> <property> <name>dfs.replication</name> <value>2</value> <description>The replication count for HLog and HFile storage. Should not be greater than HDFS datanode count. </description> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> <description>The mode the cluster will be in. Possible values are false: standalone and pseudo-distributed setups with managed Zookeeper true: fully-distributed with unmanaged Zookeeper Quorum (see hbase-env.sh) </description> </property> <property> <name>hbase.zookeeper.quorum</name> <value>ipaddress</value> </property> On Wed, Mar 7, 2012 at 6:40 PM, newbie24 <[EMAIL PROTECTED]> 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-tp33457865p33457865.html > Sent from the Hadoop core-user mailing list archive at Nabble.com. > > -- Regards Tousif +918050227279
-
Re: help to fix this issuenewbie24 2012-03-07, 13:20
Than much,.. So this is what I have in my base -site xml file <configuration> <property> <name>hbase.rootdir</name> <value>hdfs://sodium.nms.fnc.fujitsu.com:9000/hbase</value> </property> <property> <name>dfs.replication</name> <value>1</value> <description>The replication count for HLog and HFile storage. Should not be greater than HDFS datanode count. </description> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> <description>The mode the cluster will be in. Possible values are false: standalone and pseudo-distributed setups with managed Zookeeper true: fully-distributed with unmanaged Zookeeper Quorum (see hbase-env.sh) </description> </property> <property> <name>hbase.hregion.max.filesize</name> <value>536870912</value> </property> <property> <name>zookeeper.quorum</name> <value>sodium.nms.fnc.fujitsu.com</value> <description>Property from ZooKeeper's config zoo.cfg. The port at which the clients will connect. </description> </property> <property> <name>hbase.zookeeper.property.clientPort</name> <value>2181</value> <description>Property from ZooKeeper's config zoo.cfg. The port at which the clients will connect. </description> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/scratch/sramesh/alpine1.0/zookeeper/data</value> <description>Property from ZooKeeper's config zoo.cfg. The directory where the snapshot is stored. </description> </property> <property> <name>hbase.zookeeper.property.tickTime</name> <value>2000</value> <description>Property from ZooKeeper's config zoo.cfg. The port at which the clients will connect. </description> Is this correct? Thanks 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-tp33457865p33457931.html Sent from the Hadoop core-user mailing list archive at Nabble.com.
-
Re: help to fix this issuetousif 2012-03-07, 13:24
did you comment export HBASE_MANAGES_ZK=true in hbase_env.sh??
On Wed, Mar 7, 2012 at 6:50 PM, newbie24 <[EMAIL PROTECTED]> wrote: > > Than much,.. > > So this is what I have in my base -site xml file > > <configuration> > <property> > <name>hbase.rootdir</name> > <value>hdfs://sodium.nms.fnc.fujitsu.com:9000/hbase</value> > </property> > <property> > <name>dfs.replication</name> > <value>1</value> > <description>The replication count for HLog and HFile storage. > Should not be greater than HDFS datanode count. > </description> > </property> > <property> > <name>hbase.cluster.distributed</name> > <value>true</value> > <description>The mode the cluster will be in. Possible values are > false: standalone and pseudo-distributed setups with managed Zookeeper > true: fully-distributed with unmanaged Zookeeper Quorum (see > hbase-env.sh) > </description> > </property> > <property> > <name>hbase.hregion.max.filesize</name> > <value>536870912</value> > </property> > <property> > <name>zookeeper.quorum</name> > <value>sodium.nms.fnc.fujitsu.com</value> > <description>Property from ZooKeeper's config zoo.cfg. > The port at which the clients will connect. > </description> > </property> > <property> > <name>hbase.zookeeper.property.clientPort</name> > <value>2181</value> > <description>Property from ZooKeeper's config zoo.cfg. > The port at which the clients will connect. > </description> > </property> > <property> > <name>hbase.zookeeper.property.dataDir</name> > <value>/scratch/sramesh/alpine1.0/zookeeper/data</value> > <description>Property from ZooKeeper's config zoo.cfg. > The directory where the snapshot is stored. > </description> > </property> > <property> > <name>hbase.zookeeper.property.tickTime</name> > <value>2000</value> > <description>Property from ZooKeeper's config zoo.cfg. > The port at which the clients will connect. > </description> > > > Is this correct? > > Thanks > > > > 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). Regards Tousif +918050227279
-
Re: help to fix this issuetousif 2012-03-07, 13:49
you need to add this property
<property> <name>hbase.zookeeper.quorum</name> <value>ipaddress</value> </property> On Wed, Mar 7, 2012 at 7:17 PM, shripriya devarajan <[EMAIL PROTECTED]>wrote: > Thanks much... > > But this is what i have in my base xml... > > <configuration> > <property> > <name>hbase.rootdir</name> > <value>hdfs://sodium.nms.fnc.fujitsu.com:9000/hbase</value> > </property> > <property> > <name>dfs.replication</name> > <value>1</value> > <description>The replication count for HLog and HFile > storage. Should not be greater than HDFS datanode count. > </description> > </property> > <property> > <name>hbase.cluster.distributed</name> > <value>true</value> > <description>The mode the cluster will be in. Possible values are > false: standalone and pseudo-distributed setups with managed > Zookeeper > true: fully-distributed with unmanaged Zookeeper Quorum (see > hbase-env.sh) > </description> > </property> > <property> > <name>hbase.hregion.max.filesize</name> > <value>536870912</value> > </property> > <property> > <name>zookeeper.quorum</name> > <value>sodium.nms.fnc.fujitsu.com</value> > <description>Property from ZooKeeper's config zoo.cfg. > The port at which the clients will connect. > </description> > </property> > <property> > <name>hbase.zookeeper.property.clientPort</name> > <value>2181</value> > <description>Property from ZooKeeper's config zoo.cfg. > The port at which the clients will connect. > </description> > </property> > <property> > <name>hbase.zookeeper.property.dataDir</name> > <value>/scratch/sramesh/alpine1.0/zookeeper/data</value> > <description>Property from ZooKeeper's config zoo.cfg. > The directory where the snapshot is stored. > </description> > </property> > <property> > <name>hbase.zookeeper.property.tickTime</name> > <value>2000</value> > <description>Property from ZooKeeper's config zoo.cfg. > The port at which the clients will connect. > </description> > </property> > > > Is this correct. > > Please let me know. > > thanks > > > > ------------------------------ > Date: Wed, 7 Mar 2012 18:46:56 +0530 > Subject: Re: help to fix this issue > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > CC: [EMAIL PROTECTED] > > > did you add these conf properties in hbase site xml??? > > <property> > <name>hbase.rootdir</name> > <value>hdfs://address:54310/hbase</value> > </property> > <property> > <name>dfs.replication</name> > <value>2</value> > <description>The replication count for HLog and HFile storage. Should > not be greater than HDFS datanode count. > </description> > </property> > > <property> > <name>hbase.cluster.distributed</name> > <value>true</value> > <description>The mode the cluster will be in. Possible values are > false: standalone and pseudo-distributed setups with managed > Zookeeper > true: fully-distributed with unmanaged Zookeeper Quorum (see > hbase-env.sh) > </description> > </property> > > <property> > <name>hbase.zookeeper.quorum</name> > <value>ipaddress</value> > </property> > > > > On Wed, Mar 7, 2012 at 6:40 PM, newbie24 <[EMAIL PROTECTED]> 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) Regards Tousif +918050227279
-
Re: help to fix this issuenewbie24 2012-03-07, 14:20
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.
-
Re: help to fix this issuenewbie24 2012-03-07, 14:20
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-tp33457865p33458306.html Sent from the Hadoop core-user mailing list archive at Nabble.com.
-
Re: help to fix this issuetousif 2012-03-07, 14:42
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 <[EMAIL PROTECTED]> 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
-
Re: help to fix this issueanil gupta 2012-03-07, 16:51
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
-
Re: help to fix this issueSubir S 2012-03-08, 05:54
Did this work for you @newbie?
On Wed, Mar 7, 2012 at 10:21 PM, anil gupta <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 > |