avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom White (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1170) Avro's new mapreduce APIs don't work with Hadoop 2
Date Fri, 11 Jan 2013 16:50:12 GMT

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

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

I decompiled AvroKeyValueOutputFormat from both JARs with javap and indeed they both have
the interface form of TaskAttemptContext:

{noformat}
% javap -c -classpath . org/apache/avro/mapreduce/AvroKeyValueOutputFormat
...
   16:	invokeinterface	#5,  1; //InterfaceMethod org/apache/hadoop/mapreduce/TaskAttemptContext.getOutputKeyClass:()Ljava/lang/Class;
...
{noformat}

For the Hadoop 1 JAR it should be {{invokevirtual}}. I opened AVRO-1230 to fix this. Thanks
for the report Josh.
                
> 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

Mime
View raw message