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

Josh Spiegel commented on AVRO-1170:
------------------------------------

I downloaded both jars here:
  wget http://apache.claz.org/avro/avro-1.7.3/java/avro-mapred-1.7.3-hadoop1.jar
  wget http://apache.claz.org/avro/avro-1.7.3/java/avro-mapred-1.7.3-hadoop2.jar

Using either JAR with cdh3u3 (Hadoop 0.20.2) I get this error:
     java.lang.IncompatibleClassChangeError: Found class 
org.apache.hadoop.mapreduce.TaskAttemptContext, but interface was expected 
     at 
org.apache.avro.mapreduce.AvroKeyInputFormat.createRecordReader(AvroKeyInputFormat.java:47)

So I think both JARS are not compatible with anything before 0.23.0-mr1-cdh4b1 
which appears to be when TaskAttemptContext became an interface.  
                
> 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
>            Assignee: Tom White
>             Fix For: 1.7.3
>
>         Attachments: AVRO-1170.patch, AVRO-1170.patch, AVRO-1170.patch, 
> 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