Hi.
I checked out and built Giraph for Cloudera CDH5 with Hadoop 2.2.0 using the
following:
git clone git://git.apache.org/giraph.git snapshot_from_git
cd snapshot_from_git
mvn -Phadoop_yarn -Dhadoop.version=2.2.0 clean package -DskipTests
When I run the sample application
org.apache.giraph.examples.SimpleShortestPathsComputation I get the following
exception:
LogType: gam-stdout.log
Log Contents:
2014-02-19 15:00:48,751 INFO [main] yarn.GiraphApplicationMaster
(GiraphApplicationMaster.java:main(421)) - Starting GitaphAM
2014-02-19 15:00:49,746 INFO [main] yarn.GiraphApplicationMaster
(GiraphApplicationMaster.java:<init>(168)) - GiraphAM for ContainerId
container_1392713839733_0013_02_000001 ApplicationAttemptId
appattempt_1392713839733_0013_000002
2014-02-19 15:00:49,782 INFO [main] yarn.GiraphApplicationMaster
(GiraphApplicationMaster.java:run(198)) - Forcefully terminating executors with
done =:false
2014-02-19 15:00:49,783 INFO [main] yarn.GiraphApplicationMaster
(GiraphApplicationMaster.java:finish(212)) - Application completed. Stopping
running containers
2014-02-19 15:00:49,783 ERROR [main] yarn.GiraphApplicationMaster
(GiraphApplicationMaster.java:main(437)) - GiraphApplicationMaster caught a
top-level exception in main.
java.lang.NullPointerException
at
org.apache.giraph.yarn.GiraphApplicationMaster.finish(GiraphApplicationMaster.java:213)
at
org.apache.giraph.yarn.GiraphApplicationMaster.run(GiraphApplicationMaster.java:201)
at
org.apache.giraph.yarn.GiraphApplicationMaster.main(GiraphApplicationMaster.java:433)
Here is the command I used to run the application:
hadoop jar giraph-1.1.0-SNAPSHOT-for-hadoop-2.2.0-jar-with-dependencies.jar
org.apache.giraph.GiraphRunner
org.apache.giraph.examples.SimpleShortestPathsComputation
-vif org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat
-vip /user/stbesk/input/tiny-graph.txt
-vof org.apache.giraph.io.formats.IdWithValueTextOutputFormat
-op /user/stbesk/output/shortestpaths
-w 2
-ca giraph.SplitMasterWorker=true
-ca giraph.zkList=localhost:2181
-yj
giraph-1.1.0-SNAPSHOT-for-hadoop-2.2.0-jar-with-dependencies.jar,giraph-examples-1.1.0-SNAPSHOT-for-hadoop-2.2.0-jar-with-dependencies.jar
What am I doing wrong? Appreciate any suggestions for what to try next.
Thanks.
Stefan