hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Pompermaier <pomperma...@okkam.it>
Subject Re: Error during HBase import
Date Tue, 28 Oct 2014 23:49:16 GMT
Thanks! The problem actually was caused by a bad classpath that was causing
problem with zookeeper during the mapreduce job.
Happy to contribute to the fix of such trivial errors :)

On Fri, Oct 24, 2014 at 4:44 PM, Ted Yu <yuzhihong@gmail.com> wrote:

> I logged HBASE-12337
>
> FYI
>
> On Fri, Oct 24, 2014 at 7:29 AM, Ted Yu <yuzhihong@gmail.com> wrote:
>
> > From Import.java :
> >
> >       try {
> >         zkw = new ZooKeeperWatcher(conf,
> > context.getTaskAttemptID().toString(), null);
> >         clusterIds =
> > Collections.singletonList(ZKClusterId.getUUIDForCluster(zkw));
> >       } catch (ZooKeeperConnectionException e) {
> >         LOG.error("Problem connecting to ZooKeper during task setup", e);
> >       } catch (KeeperException e) {
> >         LOG.error("Problem reading ZooKeeper data during task setup", e);
> >       } catch (IOException e) {
> >         LOG.error("Problem setting up task", e);
> >
> > Do you see any of the error logs above ?
> > Looks like setup() should exit the program when clusterIds cannot be
> > initialized.
> >
> > Cheers
> >
> > On Fri, Oct 24, 2014 at 1:53 AM, Flavio Pompermaier <
> pompermaier@okkam.it>
> > wrote:
> >
> >> Hi all,
> >>
> >> I'm trying to import in my HBase 0.98 an export of 0.96 with the
> following
> >> command
> >> sudo -u hdfs hbase org.apache.hadoop.hbase.mapreduce.Driver import X
> >> /somedir
> >>
> >> But I get this error:
> >>
> >> Error: java.lang.NullPointerException
> >> at
> >> org.apache.hadoop.hbase.client.Mutation.setClusterIds(Mutation.java:331)
> >> at
> >>
> >>
> org.apache.hadoop.hbase.mapreduce.Import$Importer.writeResult(Import.java:180)
> >> at
> org.apache.hadoop.hbase.mapreduce.Import$Importer.map(Import.java:142)
> >> at
> org.apache.hadoop.hbase.mapreduce.Import$Importer.map(Import.java:125)
> >> at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
> >> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
> >> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340)
> >> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at javax.security.auth.Subject.doAs(Subject.java:415)
> >> at
> >>
> >>
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1554)
> >> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
> >>
> >> Any help?
> >>
> >> Best,
> >> Flavio
> >>
> >
> >
>

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