[
https://issues.apache.org/jira/browse/GIRAPH-629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13631930#comment-13631930
]
Eugene Koontz commented on GIRAPH-629:
--------------------------------------
I'm able to successfully compile Giraph using Hadoop 2.0.4 by using -alpha
rather than -SNAPSHOT, that is:
{code}
mvn -Phadoop_yarn -DskipTests -Dhadoop.version=2.0.4-alpha clean package
{code}
Perhaps the published 2.0.4-SNAPSHOT jars are old and do not contain the
AMResponse class.
Full instructions that worked for me:
# {{cd ~}}
# {{git clone git://git.apache.org/hadoop-common.git}}
# {{cd hadoop-common}}
# git checkout apache branch-2.0.4-alpha (commit e8286885032142 as of now)
# {{mvn -Pdist -DskipTests install}}
# {{cd ~/giraph}}
# git checkout apache trunk (commit b77acf2ef54d14b1566e2e as of now)
# {{mvn -Phadoop_yarn -Dhadoop.version=2.0.4-alpha clean package}}
Final step yields:
{code}
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Giraph Parent .............................. SUCCESS [0.728s]
[INFO] Apache Giraph Core ................................ SUCCESS [1:05.842s]
[INFO] Apache Giraph Hive I/O ............................ SUCCESS [27.309s]
[INFO] Apache Giraph Examples ............................ SUCCESS [1:22.994s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
{code}
> YARN profile is broken when compiled against hadoop-2.0.4
> ---------------------------------------------------------
>
> Key: GIRAPH-629
> URL: https://issues.apache.org/jira/browse/GIRAPH-629
> Project: Giraph
> Issue Type: Bug
> Components: build
> Affects Versions: 1.0.0
> Reporter: Roman Shaposhnik
> Assignee: Roman Shaposhnik
>
> {noformat}
> $ mvn -Phadoop_yarn -DskipTests -Dhadoop.version=2.0.4-SNAPSHOT clean package
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Giraph Parent .............................. SUCCESS [1.359s]
> [INFO] Apache Giraph Core ................................ FAILURE [15.319s]
> [INFO] Apache Giraph Hive I/O ............................ SKIPPED
> [INFO] Apache Giraph Examples ............................ SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 17.374s
> [INFO] Finished at: Fri Apr 12 17:21:11 PDT 2013
> [INFO] Final Memory: 39M/481M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile)
> on project giraph-core: Compilation failure: Compilation failure:
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[46,42]
> cannot find symbol
> [ERROR] symbol : class AMResponse
> [ERROR] location: package org.apache.hadoop.yarn.api.records
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[206,42]
> cannot find symbol
> [ERROR] symbol : class AMResponse
> [ERROR] location: class org.apache.giraph.yarn.GiraphApplicationMaster
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[291,47]
> cannot find symbol
> [ERROR] symbol : class AMResponse
> [ERROR] location: class org.apache.giraph.yarn.GiraphApplicationMaster
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[368,11]
> cannot find symbol
> [ERROR] symbol : class AMResponse
> [ERROR] location: class org.apache.giraph.yarn.GiraphApplicationMaster
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[398,35]
> cannot find symbol
> [ERROR] symbol : class AMResponse
> [ERROR] location: class org.apache.giraph.yarn.GiraphApplicationMaster
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[178,7]
> cannot find symbol
> [ERROR] symbol : class AMResponse
> [ERROR] location: class org.apache.giraph.yarn.GiraphApplicationMaster
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[255,26]
> cannot find symbol
> [ERROR] symbol : method getAMResponse()
> [ERROR] location: interface
> org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[296,37]
> cannot find symbol
> [ERROR] symbol : method getAMResponse()
> [ERROR] location: interface
> org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[327,49]
> cannot find symbol
> [ERROR] symbol : method getState()
> [ERROR] location: interface org.apache.hadoop.yarn.api.records.Container
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[349,46]
> cannot find symbol
> [ERROR] symbol : method getAMResponse()
> [ERROR] location: interface
> org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[353,42]
> cannot find symbol
> [ERROR] symbol : method getAMResponse()
> [ERROR] location: interface
> org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[379,7]
> cannot find symbol
> [ERROR] symbol : class AMResponse
> [ERROR] location: class org.apache.giraph.yarn.GiraphApplicationMaster
> [ERROR]
> /tmp/giraph/giraph-core/target/munged/main/org/apache/giraph/yarn/GiraphApplicationMaster.java:[379,44]
> cannot find symbol
> [ERROR] symbol : method getAMResponse()
> [ERROR] location: interface
> org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <goals> -rf :giraph-core
> {noformat}
--
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