Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 0.98.0, 0.94.8, 0.95.1
    • Fix Version/s: None
    • Component/s: mapreduce, test
    • Labels:
      None

      Description

      It looks like TestImportTsv can be fixed once HBASE-8453 is applied with this additional delta:

      diff --git a/src/test/java/org/apache/hadoop/hbase/mapreduce/TestImportTsv.java b/src/test/java/org/
      index 77d044b..0da6f0a 100644
      --- a/src/test/java/org/apache/hadoop/hbase/mapreduce/TestImportTsv.java
      +++ b/src/test/java/org/apache/hadoop/hbase/mapreduce/TestImportTsv.java
      @@ -26,6 +26,7 @@ import java.util.ArrayList;
       import org.apache.commons.logging.Log;
       import org.apache.commons.logging.LogFactory;
       import org.apache.hadoop.hbase.*;
      +import org.apache.hadoop.mapred.JobConf;
       import org.apache.hadoop.mapreduce.Job;
       import org.apache.hadoop.fs.FSDataOutputStream;
       import org.apache.hadoop.fs.Path;
      @@ -289,7 +290,10 @@ public class TestImportTsv {
               LOG.info("set the hbaseAdmin");
               ImportTsv.createHbaseAdmin(conf);
             }
      -      Job job = ImportTsv.createSubmittableJob(conf, args);
      +
      +      JobConf jobConf = htu1.getMRCluster().createJobConf();
      +      HBaseConfiguration.merge(jobConf, conf);
      +      Job job = ImportTsv.createSubmittableJob(jobConf, args);
             job.waitForCompletion(false);
             assertTrue(job.isSuccessful());
      

      Tested with Hadoop 2.0.4 + HBase 0.94.7.

      1. 8454-branch-0.94.patch
        1 kB
        Andrew Purtell
      2. 8454.patch
        2 kB
        Andrew Purtell

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrew Purtell
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development