Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - HBASE -- Regionserver and QuorumPeer ?


Copy link to this message
-
Re: HBASE -- Regionserver and QuorumPeer ?
Suraj Varma 2012-07-02, 23:43
Ok - thanks for checking connectivity.

I presume you already have doublechecked the hbase-site.xml in your
region server that points to the zookeeper and hdfs-site.xml pointed
to the namenode.

I once got a similar error when HBase was picking up a stray
core-site.xml / hdfs-site.xml from the hdfs install or hbase-site.xml
from another hbase install (perhaps a stray local install)

If connectivity is all right, and you are getting connection refused,
I think your region server is picking up the wrong configuration file.
So - do a "locate" on the region server configuration files to see if
there are others on the box.

Just trying to eliminate basic setup issues ...
--Suraj
On Mon, Jul 2, 2012 at 3:55 PM, Jay Wilson
<[EMAIL PROTECTED]> wrote:
> First, thank you.
>
> I moved my HRegionservers not my HQuorumPeers.
>
> I have checked the network and everyone can talk to everyone.  I can
> even talk to my HQuorumPeers via "nc" from the nodes that should be
> running my HMaster on it and my HRegionservers.
>
> [hadoop@devrackA-00 ~]$ zookeeper-check
> devrackA-03
> imok
> This ZooKeeper instance is not currently serving requests
> This ZooKeeper instance is not currently serving requests
>
>
>
> devrackA-04
> imok
> Zookeeper version: 3.3.5-cdh3u4--1, built on 05/07/2012 20:10 GMT
> Clients:
>  /172.18.0.1:41582[0](queued=0,recved=1,sent=0)
>
> Latency min/avg/max: 0/0/0
> Received: 5
> Sent: 4
> Outstanding: 0
> Zxid: 0x0
> Mode: follower
> Node count: 4
>  /172.18.0.1:41583[0](queued=0,recved=1,sent=0)
>
>
>
>
> devrackA-05
> imok
> Zookeeper version: 3.3.5-cdh3u4--1, built on 05/07/2012 20:10 GMT
> Clients:
>  /172.18.0.1:35517[0](queued=0,recved=1,sent=0)
>
> Latency min/avg/max: 0/0/0
> Received: 5
> Sent: 4
> Outstanding: 0
> Zxid: 0x0
> Mode: follower
> Node count: 4
>  /172.18.0.1:35518[0](queued=0,recved=1,sent=0)
>
>
> ~~~~~~~~~~~~~~~~~~~~
>
>
> [hadoop@devrackA-06 ~]$ jps
> 21276 Jps
> 20641 DataNode
> [hadoop@devrackA-06 ~]$ echo ruok | nc devrackA-04 2181
> imok[hadoop@devrackA-06 ~]$ echo stat | nc devrackA-04 2181
> Zookeeper version: 3.3.5-cdh3u4--1, built on 05/07/2012 20:10 GMT
> Clients:
>  /172.18.0.7:37950[0](queued=0,recved=1,sent=0)
>
> Latency min/avg/max: 0/0/0
> Received: 8
> Sent: 7
> Outstanding: 0
> Zxid: 0x0
> Mode: follower
> Node count: 4
>
>
> ~~~~~~~~~~~~~~~~~~~
>
>
> [hadoop@devrackB-07 ~]$ echo ruok | nc devrackA-04 2181
> imok[hadoop@devrackB-07 ~]$ echo stat | nc devrackA-03 2181
> This ZooKeeper instance is not currently serving requests
> [hadoop@devrackB-07 ~]$ echo stat | nc devrackA-05 2181
> Zookeeper version: 3.3.5-cdh3u4--1, built on 05/07/2012 20:10 GMT
> Clients:
>  /172.18.0.72:40784[0](queued=0,recved=1,sent=0)
>
> Latency min/avg/max: 0/0/0
> Received: 7
> Sent: 6
> Outstanding: 0
> Zxid: 0x0
> Mode: follower
> Node count: 4
> [hadoop@devrackB-07 ~]$ echo stat | nc devrackA-04 2181
> Zookeeper version: 3.3.5-cdh3u4--1, built on 05/07/2012 20:10 GMT
> Clients:
>  /172.18.0.72:60795[0](queued=0,recved=1,sent=0)
>
> Latency min/avg/max: 0/0/0
> Received: 10
> Sent: 9
> Outstanding: 0
> Zxid: 0x0
> Mode: follower
> Node count: 4
> [hadoop@devrackB-07 ~]$
>
> ~~~~~~~~~~~
>
> I know it says connection refused in the error, but are there files
> associated with a HRegionServer that I need to clean up?  I did NOT move
> the HMaster or HQuorumPeers.  I only moved the HRegionServers
>
> Thanks you for the help.
>
> ---
> Jay Wilson
>
>
>
>
>
> On 7/2/2012 2:43 PM, Suraj Varma wrote:
>> The error you are getting is:
>>
>>> 2012-07-02 12:39:02,205 INFO org.apache.zookeeper.ClientCnxn: Opening
>>> socket connection to server devrackA-05/172.18.0.6:2181
>>> 2012-07-02 12:39:02,211 WARN org.apache.zookeeper.ClientCnxn: Session
>>> 0x0 for server null, unexpected error, closing socket connection and
>>> attempting reconnect
>>> java.net.ConnectException: Connection refused
>>
>>
>> This means this server is not able to reach the zookeeper. Did you
>> change your hbase-site.xml as well with the new zookeeper quorum?