[ 
https://issues.apache.org/jira/browse/HBASE-5861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260188#comment-13260188
 ] 

Lars Hofhansl commented on HBASE-5861:
--------------------------------------

My patch didn't work anyway, since MapReduceTestUtil is a test class in Hadoop.

This brings to another point: Some of the HBase tests need this lower layer for 
UnitTests, but the "production" part of HBase should not operate at this layer.

So whatever fix we have for this, should only involve test code. If folks agree 
with this then HadoopShim should be a test class.

                
> 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

        

Reply via email to