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

Tom White commented on AVRO-1170:
---------------------------------

bq. To be clear, the current patch could be committed without the changes to 
the pom and everything would still work with Hadoop 1, right?

Yes. I haven't tested that yet, but that's the idea.

bq. Would Hadoop 2 require recompilation?

Unfortunately it would. I found this out in MRUNIT-56 - the bytecode for method 
invocation is different for classes and interfaces, so a separate JAR is needed 
for each version.
                
> Avro's new mapreduce APIs don't work with Hadoop 2
> --------------------------------------------------
>
>                 Key: AVRO-1170
>                 URL: https://issues.apache.org/jira/browse/AVRO-1170
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.1
>            Reporter: Tom White
>         Attachments: AVRO-1170.patch, AVRO-1170.patch
>
>
> Avro does not compile against Hadoop since some interfaces were changed to 
> classes between Hadoop 1 and 2 (e.g. TaskAttemptContext).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to