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

Hadoop 23 compilation broken due to tests introduced in HBASE-5604

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.94.0, 0.95.2
    • 0.94.0, 0.95.0
    • test
    • None
    • Reviewed

    Description

      When attempting to compile HBase 0.94rc1 against hadoop 23, I got this set of compilation error messages:

      jon@swoop:~/proj/hbase-0.94$ mvn clean test -Dhadoop.profile=23 -DskipTests
      ...
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 18.926s
      [INFO] Finished at: Mon Apr 23 10:38:47 PDT 2012
      [INFO] Final Memory: 55M/555M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile (default-testCompile) on project hbase: Compilation failure: Compilation failure:
      [ERROR] /home/jon/proj/hbase-0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestHLogRecordReader.java:[147,46] org.apache.hadoop.mapreduce.JobContext is abstract; cannot be instantiated
      [ERROR] 
      [ERROR] /home/jon/proj/hbase-0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestHLogRecordReader.java:[153,29] org.apache.hadoop.mapreduce.JobContext is abstract; cannot be instantiated
      [ERROR] 
      [ERROR] /home/jon/proj/hbase-0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestHLogRecordReader.java:[194,46] org.apache.hadoop.mapreduce.JobContext is abstract; cannot be instantiated
      [ERROR] 
      [ERROR] /home/jon/proj/hbase-0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestHLogRecordReader.java:[206,29] org.apache.hadoop.mapreduce.JobContext is abstract; cannot be instantiated
      [ERROR] 
      [ERROR] /home/jon/proj/hbase-0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestHLogRecordReader.java:[213,29] org.apache.hadoop.mapreduce.JobContext is abstract; cannot be instantiated
      [ERROR] 
      [ERROR] /home/jon/proj/hbase-0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestHLogRecordReader.java:[226,29] org.apache.hadoop.mapreduce.TaskAttemptContext is abstract; cannot be instantiated
      [ERROR] -> [Help 1]
      

      Upon further investigation this issue is due to code introduced in HBASE-5064 and is also present in trunk.

      Attachments

        1. 5861.txt
          1 kB
          Lars Hofhansl
        2. 5861-v4.patch
          10 kB
          Ted Yu
        3. hbase-5861-jon.patch
          8 kB
          Jonathan Hsieh
        4. hbase-5861-v2.patch
          14 kB
          Jonathan Hsieh
        5. hbase-5861-v3.patch
          7 kB
          Jonathan Hsieh

        Issue Links

          Activity

            People

              jmhsieh Jonathan Hsieh
              jmhsieh Jonathan Hsieh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: