Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4688

Make it so can run PE w/o having to put hbase jar on CLASSPATH

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.92.0
    • None
    • None

    Description

      I need this:

      diff --git a/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java b/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
      index 3982eff..ef47d0d 100644
      --- a/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
      +++ b/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
      @@ -570,6 +570,9 @@ public class PerformanceEvaluation {
           TextOutputFormat.setOutputPath(job, new Path(inputDir,"outputs"));
       
           TableMapReduceUtil.addDependencyJars(job);
      +    // Add a Class from the hbase.jar so it gets registered too.
      +    TableMapReduceUtil.addDependencyJars(job.getConfiguration(),
      +      org.apache.hadoop.hbase.util.Bytes.class);
           job.waitForCompletion(true);
         }
      

      Attachments

        1. pe.txt
          0.7 kB
          Michael Stack

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: