At this point you either need Hadoop 2.5+ or you need to manually hack the two offending files.
Thanks, Roman. On Thu, Nov 6, 2014 at 9:44 PM, Sundara Raghavan Sankaran <sun...@crayondata.com> wrote: > Hi Giraph Experts, > > I'm trying to build Giraph (trunk) for Hadoop 2.4.0. I know that there are 2 > profiles with which I can proceed to build. hadoop_yarn and hadoop_2 > profiles. > > When I try with hadoop_yarn, build is fine. When I try with hadoop_2, build > is failing. > > The commands I used is > mvn -Phadoop_yarn -Dhadoop.version=2.4.0 -DskipTests clean install > mvn -Phadoop_2 -Dhadoop.version=2.4.0 -DskipTests clean install > > I get the following error while building with hadoop_2 profile > > [INFO] ------------------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Giraph Parent ............................... SUCCESS [ 5.758 > s] > [INFO] Apache Giraph Core ................................. FAILURE [ 9.259 > s] > [INFO] Apache Giraph Examples ............................. SKIPPED > [INFO] Apache Giraph Accumulo I/O ......................... SKIPPED > [INFO] Apache Giraph HBase I/O ............................ SKIPPED > [INFO] Apache Giraph HCatalog I/O ......................... SKIPPED > [INFO] Apache Giraph Hive I/O ............................. SKIPPED > [INFO] Apache Giraph Gora I/O ............................. SKIPPED > [INFO] Apache Giraph Rexster I/O .......................... SKIPPED > [INFO] Apache Giraph Rexster Kibble ....................... SKIPPED > [INFO] Apache Giraph Rexster I/O Formats .................. SKIPPED > [INFO] Apache Giraph Distribution ......................... SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 15.722 s > [INFO] Finished at: 2014-11-07T11:06:36+05:30 > [INFO] Final Memory: 48M/558M > [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] > /home/sundar/giraph/giraph-core/src/main/java/org/apache/giraph/comm/netty/SaslNettyClient.java:[93,32] > getDefaultProperties() has protected access in > org.apache.hadoop.security.SaslPropertiesResolver > [ERROR] > /home/sundar/giraph/giraph-core/src/main/java/org/apache/giraph/comm/netty/SaslNettyServer.java:[113,32] > getDefaultProperties() has protected access in > org.apache.hadoop.security.SaslPropertiesResolver > [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 > > Can some one help me in understanding why this is happening with profile > change? I get it if the build failed when hadoop version changed. > > -- > Thanks, > Sundar