[ https://issues.apache.org/jira/browse/HBASE-5861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260601#comment-13260601 ]
Jonathan Hsieh commented on HBASE-5861: --------------------------------------- We shouldn't use JobContextImpl or TaskAttemptContextImpl since it is marked: {code} @InterfaceAudience.Private {code} My guess is that HBASE-5853 may be something else -- possibly a class path or jar compatibility problem. At first glance it looks over there that only public apis are used. I'll move the previous patch to be a HadoopTestShim in hbase tests and use MapReduceTestUtil. At the moment this seems to be isolated to tests. If we need to have a shim for production code, we can make a new HadoopShim for those calls. > Hadoop 23 compile broken due to tests introduced in HBASE-5064 > --------------------------------------------------------------- > > Key: HBASE-5861 > URL: https://issues.apache.org/jira/browse/HBASE-5861 > Project: HBase > Issue Type: Bug > Components: test > Affects Versions: 0.94.0, 0.96.0 > Reporter: Jonathan Hsieh > Assignee: Jonathan Hsieh > Priority: Blocker > Fix For: 0.94.0, 0.96.0 > > Attachments: 5861.txt, hbase-5861-jon.patch, hbase-5861-v2.patch > > > When attempting to compile HBase 0.94rc1 against hadoop 23, I got this set of > compilation error messages: > {code} > 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] > {code} > Upon further investigation this issue is due to code introduced in HBASE-5064 > and is also present in trunk. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira