hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shashwat shriparv <dwivedishash...@gmail.com>
Subject Re: HBase Rowcounter not working..
Date Mon, 07 May 2012 19:15:54 GMT
Its because your hbase is not able to connect to hadoop... put
configuratioj files of hadoop to hbase conf dir and den try. after putting
the hdfs-site.xml, core-site.xml and mapred-site.xml do restart hadoop and
hbase. and try..

On Mon, May 7, 2012 at 8:51 PM, Damien HARDY <dhardy@figarocms.fr> wrote:

> Hello,
>
> If you have the default /etc/zookeeper/zoo.cfg try to rename or remove it.
> It takeover the zookeeper Hbase quorum configuration of hbase-site.xml
>
> Cheers,
>
> --
> Damien
>
> Le 07/05/2012 17:17, Subir S a écrit :
> > Hello,
> >
> > Version:0.90.4-CDH3U3
> > HBase managed ZK
> >
> > I tried to run a simple rowcounter as below:
> >
> > export HBASE_HOME=/usr/lib/hbase;export HADOOP_CLASSPATH=`hbase
> > classpath`$HBASE_HOME/conf/hbase-site.xml:$HBASE_HOME/conf;hadoop jar
> > /usr/lib/hbase/hbase-0.90.4-cdh3u3.jar rowcounter test_table
> >
> > However it failed with below messages in the taskTracker logs:
> >
> > 2012-05-07 11:04:58,168 ERROR
> > org.apache.hadoop.hbase.mapreduce.TableInputFormat:
> > 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.
> >       at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:160)
> >       at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:1209)
> >       at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:511)
> >       at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:502)
> >       at
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:172)
> >       at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:175)
> >       at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:153)
> >       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.MapTask.runNewMapper(MapTask.java:606)
> >       at org.apache.hadoop.mapred.MapTask.run(MapTask.java:323)
> >       at org.apache.hadoop.mapred.Child$4.run(Child.java:270)
> >       at java.security.AccessController.doPrivileged(Native Method)
> >       at javax.security.auth.Subject.doAs(Subject.java:396)
> >       at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1157)
> >       at org.apache.hadoop.mapred.Child.main(Child.java:264)
> > Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException:
> > KeeperErrorCode = ConnectionLoss for /hbase
> >       at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
> >       at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
> >       at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:815)
> >       at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:843)
> >       at
> org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:902)
> >       at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:138)
> >       ... 16 more
> >
> > 2012-05-07 11:05:00,848 INFO
> > org.apache.hadoop.mapred.TaskLogsTruncater: Initializing logs'
> > truncater with mapRetainSize=-1 and reduceRetainSize=-1
> > 2012-05-07 11:05:00,850 ERROR
> > org.apache.hadoop.security.UserGroupInformation:
> > PriviledgedActionException as:ssasik0 (auth:SIMPLE)
> > cause:java.io.IOException: Cannot create a record reader because of a
> > previous error. Please look at the previous logs lines from the task's
> > full log for more details.
> > 2012-05-07 11:05:00,851 WARN org.apache.hadoop.mapred.Child: Error
> running child
> > java.io.IOException: Cannot create a record reader because of a
> > previous error. Please look at the previous logs lines from the task's
> > full log for more details.
> >       at
> org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.createRecordReader(TableInputFormatBase.java:98)
> >       at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:614)
> >       at org.apache.hadoop.mapred.MapTask.run(MapTask.java:323)
> >       at org.apache.hadoop.mapred.Child$4.run(Child.java:270)
> >       at java.security.AccessController.doPrivileged(Native Method)
> >       at javax.security.auth.Subject.doAs(Subject.java:396)
> >       at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1157)
> >       at org.apache.hadoop.mapred.Child.main(Child.java:264)
> > 2012-05-07 11:05:00,853 INFO org.apache.hadoop.mapred.Task: Runnning
> > cleanup for the task
> >
> > ------------------------------
> >
> > Any help is appreciated...
> >
> >
> > Thank you.
>
>
>


-- 


∞
Shashwat Shriparv

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message