giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Emre Alada─č <emre.ala...@agmlab.com>
Subject Running Giraph job inside Java code
Date Tue, 02 Jul 2013 11:04:16 GMT
Hi,

How can we run a Giraph job inside the java code? Using the scheme below 
didn't work.

...

     GiraphJob giraphJob = new GiraphJob(giraphConf, "LinkRank2");
giraphJob.getInternalJob().setJarByClass(LinkRankComputation.class);
     giraphJob.run(true);

...

Error in Hadoop logs:

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.giraph.examples.LinkRank.LinkRankComputation
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:881)

I'm setting $HADOOP_CLASSPATH to the folder with giraph, giraph-examples 
jars. But it can't find the computation class.


Mime
View raw message