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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.92.0
    • Component/s: None
    • Labels:
      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

          Activity

            People

            • Assignee:
              stack stack
              Reporter:
              stack stack
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: