You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Tomasz Guziałek <to...@guzialek.info> on 2014/06/23 00:08:25 UTC

Cannot connect to HBase / Zookeeper hangs.

Hello all

I have a MapReduce job connecting to HBase. I have tested it on Cloudera VM
5.0.0 (so psuedo-distributed mode). Now I try to run it on a CDH5 cluster
deployed on Amazon EC2.

Following the advices found in Google, I updated the dependency in my JAR
to match the one on the cluster: 0.96.1.1-cdh5.0.2 for HBase and
2.3.0-cdh5.0.2 for Hadoop. Also, I added hbase.zookeeper.quorum property to
my HBaseConfiguration (it was not necessary in pseudo-distributed mode...):

Configuration mapReduceConfiguration = HBaseConfiguration.create();
mapReduceConfiguration.set("hbase.zookeeper.quorum",
"domU-12-31-39-16-60-87.compute-1.internal");
mapReduceConfiguration.set("hbase.zookeeper.property.clientPort", "2181");

My job hangs after a successful (?) session establishment to Zookeeper.
Stacktrace available here: http://pastebin.com/raw.php?i=GYAAwjfp

My HBase cluster consists of a master and 2 slaves. Zookeeper has one
server, the same as HBase master. Some of these values are present in the
logs, so a quick summary:

Master public DNS:ec2-54-197-217-239.compute-1.amazonaws.com
Master private DNS: domU-12-31-39-16-60-87.compute-1.internal
Slave01 public DNS:ec2-54-205-8-104.compute-1.amazonaws.com
Slave01 private DNS: ip-10-2-31-239.ec2.internal
Slave02 public DNS: ec2-23-21-32-89.compute-1.amazonaws.com
Slave02 private DNS: ip-10-72-214-28.ec2.internal

Any ideas what might be set wrong?

Best regards
Tomasz

Re: Cannot connect to HBase / Zookeeper hangs.

Posted by Ted Yu <yu...@gmail.com>.
bq. Stacktrace available here: http://pastebin.com/raw.php?i=GYAAwjfp

I clicked on the above link and saw server log. Can you pastebin stack
trace ?

Have you set 'hbase.rootdir' in your config ?


On Sun, Jun 22, 2014 at 3:08 PM, Tomasz Guziałek <to...@guzialek.info>
wrote:

> Hello all
>
> I have a MapReduce job connecting to HBase. I have tested it on Cloudera VM
> 5.0.0 (so psuedo-distributed mode). Now I try to run it on a CDH5 cluster
> deployed on Amazon EC2.
>
> Following the advices found in Google, I updated the dependency in my JAR
> to match the one on the cluster: 0.96.1.1-cdh5.0.2 for HBase and
> 2.3.0-cdh5.0.2 for Hadoop. Also, I added hbase.zookeeper.quorum property to
> my HBaseConfiguration (it was not necessary in pseudo-distributed mode...):
>
> Configuration mapReduceConfiguration = HBaseConfiguration.create();
> mapReduceConfiguration.set("hbase.zookeeper.quorum",
> "domU-12-31-39-16-60-87.compute-1.internal");
> mapReduceConfiguration.set("hbase.zookeeper.property.clientPort", "2181");
>
> My job hangs after a successful (?) session establishment to Zookeeper.
> Stacktrace available here: http://pastebin.com/raw.php?i=GYAAwjfp
>
> My HBase cluster consists of a master and 2 slaves. Zookeeper has one
> server, the same as HBase master. Some of these values are present in the
> logs, so a quick summary:
>
> Master public DNS:ec2-54-197-217-239.compute-1.amazonaws.com
> Master private DNS: domU-12-31-39-16-60-87.compute-1.internal
> Slave01 public DNS:ec2-54-205-8-104.compute-1.amazonaws.com
> Slave01 private DNS: ip-10-2-31-239.ec2.internal
> Slave02 public DNS: ec2-23-21-32-89.compute-1.amazonaws.com
> Slave02 private DNS: ip-10-72-214-28.ec2.internal
>
> Any ideas what might be set wrong?
>
> Best regards
> Tomasz
>