hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-12337) Import tool fails with NullPointerException if clusterIds is not initialized
Date Fri, 24 Oct 2014 14:44:34 GMT
Ted Yu created HBASE-12337:

             Summary: Import tool fails with NullPointerException if clusterIds is not initialized
                 Key: HBASE-12337
                 URL: https://issues.apache.org/jira/browse/HBASE-12337
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu
            Assignee: Ted Yu

Flavio Pompermaier reported in this thread:

Here is stack trace:
Error: java.lang.NullPointerException
at org.apache.hadoop.hbase.client.Mutation.setClusterIds(Mutation.java:331)
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)
This was due to clusterIds not being initialized in setup() method:
      try {
        zkw = new ZooKeeperWatcher(conf, context.getTaskAttemptID().toString(), null);
        clusterIds = Collections.singletonList(ZKClusterId.getUUIDForCluster(zkw));
      } catch (ZooKeeperConnectionException e) {
Instead of throwing NullPointerException from Import$Importer, Import should exit early with
proper message and exit code.

This message was sent by Atlassian JIRA

View raw message