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

Joep Rottinghuis commented on MAPREDUCE-3039:
---------------------------------------------

I think I have the answer. When compiling this on my Ubuntu 11.04 desktop with 
JDK 1.6.0_26, Utf8 is allowed in place of Charsequence.
However, our jenkins server running 1.6.0_16 just spat out a bunch of 
compilation errors:

compile-mapred-classes:
[jsp-compile] 11/09/19 18:20:40 WARN compiler.TldLocationsCache: Internal 
Error: File /WEB-INF/web.xml not found
    [javac] 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/build.xml:380:
 warning: 'includeantruntime' was not set, defaulting to 
build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 524 source files to 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/build/classes
    [javac] 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/src/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java:87:
 incompatible types
    [javac] found   : org.apache.avro.util.Utf8
    [javac] required: java.lang.CharSequence
    [javac]     result.name = new Utf8(name);
    [javac]                   ^
    [javac] 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/src/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java:88:
 incompatible types
    [javac] found   : 
org.apache.avro.generic.GenericData.Array<org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup>
    [javac] required: 
java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup>
    [javac]     result.groups = new GenericData.Array<JhCounterGroup>(0, 
GROUPS);
    [javac]                     ^
    [javac] 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/src/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java:92:
 incompatible types
    [javac] found   : org.apache.avro.util.Utf8
    [javac] required: java.lang.CharSequence
    [javac]       g.name = new Utf8(group.getName());
    [javac]                ^
    [javac] 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/src/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java:93:
 incompatible types
    [javac] found   : org.apache.avro.util.Utf8
    [javac] required: java.lang.CharSequence
    [javac]       g.displayName = new Utf8(group.getDisplayName());
    [javac]                       ^
    [javac] 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/src/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java:94:
 incompatible types
    [javac] found   : 
org.apache.avro.generic.GenericData.Array<org.apache.hadoop.mapreduce.jobhistory.JhCounter>
    [javac] required: 
java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounter>
    [javac]       g.counts = new GenericData.Array<JhCounter>(group.size(), 
COUNTERS);
    [javac]                  ^
    [javac] 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/src/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java:97:
 incompatible types
    [javac] found   : org.apache.avro.util.Utf8
    [javac] required: java.lang.CharSequence
    [javac]         c.name = new Utf8(counter.getName());
    [javac]                  ^
    [javac] 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/src/java/org/apache/hadoop/mapreduce/jobhistory/EventWriter.java:98:
 incompatible types
    [javac] found   : org.apache.avro.util.Utf8
    [javac] required: java.lang.CharSequence
    [javac]         c.displayName = new Utf8(counter.getDisplayName());
    [javac]                         ^
    [javac] 
/hadoop01/jenkins/jobs/hadoop-mapreduce-SNAPSHOT/workspace/mapreduce/src/java/org/apache/hadoop/mapreduce/jobhistory/TaskAttemptFinishedEvent.java:56:
 incompatible types

etc. etc.

Will remove the UTf8 and submit new patch.

> Make mapreduce use same version of avro as HBase
> ------------------------------------------------
>
>                 Key: MAPREDUCE-3039
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3039
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: contrib/capacity-sched, contrib/fair-share, 
> contrib/gridmix, contrib/mrunit, contrib/mumak, contrib/raid, 
> contrib/streaming, jobhistoryserver
>    Affects Versions: 0.22.0
>            Reporter: Joep Rottinghuis
>            Assignee: Joep Rottinghuis
>             Fix For: 0.22.0
>
>         Attachments: MAPREDUCE-3039-branch-0.22.patch
>
>
> HBase depends on avro 1.5.3 whereas hadoop-common depends on 1.3.2.
> When building HBase on top of hadoop, this should be consistent.
> Moreover, this should be consistent between common, hdfs, and mapreduce.
> Contribs seem to have declared a dependency on avro but are not in fact 
> depending on it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to