hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: problem running hadoop map reduce due to zookeeper ensemble not found
Date Sat, 03 Mar 2012 00:27:01 GMT
Set hbase.zookeeper.quorum in your JobConf before submitting, to the
list of hosts that form your ZK quorum. Usually thats all you need to
run a HBase job and having it pick up the right cluster.

On Sat, Mar 3, 2012 at 5:10 AM, T Vinod Gupta <tvinod@readypulse.com> wrote:
> can someone tell, what the right way to do this.. i created a jar that
> creates a map reduce job and submits it. but i get this error when i run it
> -
>
> 12/03/02 21:42:13 ERROR zookeeper.ZKConfig: no clientPort found in zoo.cfg
> 12/03/02 21:42:13 ERROR mapreduce.TableInputFormat:
> org.apache.hadoop.hbase.ZooKeeperConnectionException: java.io.IOException:
> Unable to determine ZooKeeper ensemble
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:1000)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:303)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:294)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:156)
>        at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:167)
>        at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:145)
>        at
> org.apache.hadoop.hbase.mapreduce.TableInputFormat.setConf(TableInputFormat.java:91)
>        at
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62)
>        at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
>        at
> org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:882)
>        at
> org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:779)
>        at org.apache.hadoop.mapreduce.Job.submit(Job.java:432)
>        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:448)
> Caused by: java.io.IOException: Unable to determine ZooKeeper ensemble
>        at org.apache.hadoop.hbase.zookeeper.ZKUtil.connect(ZKUtil.java:92)
>        at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:119)
>        at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:998)
>        ... 17 more
>
> this is on a standalone hbase installation.. when i try to run it on a
> different machine with distributed hbase installation, i get the same
> error..
> i just it simply by doing
> java <jar name> <classname with main in it>
>
> thanks



-- 
Harsh J

Mime
View raw message