Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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 ?
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?
Do basic connectivity testing to ensure that your hosts / DNS is all
in place after your relocations - checkout
http://hbase.apache.org/book.html#d1952e311 and see if the dns checker
tool might help.
--S

On Mon, Jul 2, 2012 at 1:12 PM, Jay Wilson
<[EMAIL PROTECTED]> wrote:
> First, Yep I am a newbie to Hadoop/Hbase. I have read both of the
> O'Reilly books (Hadoop and Hbase), so my knowledge level at this point
> is pure book learning and understanding the log messages is very vexing.
>
> Second, based on the recommendations of this mail-list I decided to move
> my HRegionservers to nodes other than where where my HQuorumpeers are.
> I updated my regionservers file on every node in the cluster. I ran
> stop-hbase.sh, stop-all.sh, and cleaned up my zookeeper files.  Then I
> ran start-all.sh, waited, and then ran start-hbase.sh.  Now my HMaster
> and HRegionservers terminate within seconds.  Before I had them at least
> running for 30 minutes.  The message is:
>
> 2012-07-02 12:39:02,193 INFO org.apache.zookeeper.ZooKeeper: Client
> environment:java.io.tmpdir=/tmp
> 2012-07-02 12:39:02,193 INFO org.apache.zookeeper.ZooKeeper: Client
> environment:java.compiler=<NA>
> 2012-07-02 12:39:02,193 INFO org.apache.zookeeper.ZooKeeper: Client
> environment:os.name=Linux
> 2012-07-02 12:39:02,193 INFO org.apache.zookeeper.ZooKeeper: Client
> environment:os.arch=amd64
> 2012-07-02 12:39:02,193 INFO org.apache.zookeeper.ZooKeeper: Client
> environment:os.version=2.6.18-194.el5
> 2012-07-02 12:39:02,193 INFO org.apache.zookeeper.ZooKeeper: Client
> environment:user.name=hadoop
> 2012-07-02 12:39:02,193 INFO org.apache.zookeeper.ZooKeeper: Client
> environment:user.home=/home/hadoop
> 2012-07-02 12:39:02,193 INFO org.apache.zookeeper.ZooKeeper: Client
> environment:user.dir=/home/hadoop/jscripts
> 2012-07-02 12:39:02,194 INFO org.apache.zookeeper.ZooKeeper: Initiating
> client connection,
> connectString=devrackA-03:2181,devrackA-05:2181,devrackA-04:2181
> sessionTimeout=180000 watcher=master:60000
> 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
>
> I tried the same sequence again (stop-hbase.sh, stop-all.sh, and cleaned
> up zookeeper), but I get the same result (Connection refused).  Is there
> something else I need to do when I move a regionserver?
>
> My zookeeper working directory is /home/hbase/zookeeper.  Would there be
> other places that I need to clean up?
>
>
>
> Thank You
> --
> Jay
>
>
>
> On 7/2/2012 11:25 AM, Amandeep Khurana wrote:
>> As someone who has been developing/running/using the software for a longer period of time than the person who is asking the question, you can best serve the poser by making them aware of the trade offs and why it's a good/bad idea to do things a certain way. At the end of the day, it's their choice to make based on their requirements and constraints.
>>
>> Having said that, it'll be really nice to stop this thread from becoming more about how to answer questions rather than answering the question itself.
>>
>> Bringing the thread back to track:
>>
>> Jay, you can certainly run zookeepers with the Datanodes and Region Server processes. The issue there (as highlighted by Andy earlier) is that you will likely load up the machine (primarily due to I/O) which will cause ZK some grief. It is generally recommended to collocate in the following groups:
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB