Hi Deepankar...

Steps to compile your own program in giraph...

1. write your java  program to be executed..
2. Save the program in giraph-examples directory.
3. in command prompt,type cd $GIRAPH_HOME
then cd giraph-examples
then type mvn compile
Using above command to compile,your program will be compiled..
To run the program

hadoop jar 
$GIRAPH_HOME/giraph-examples/target/giraph-examples-1.1.0-SNAPSHOT-for-hadoop-0.20.203.0-jar-with-dependencies.jar
org.apache.giraph.GiraphRunner
org.apache.giraph.examples.your_program_name -vif
org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat
-vip /user/hduser/input/tiny_graph.txt -of
org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op
/user/hduser/output/shortestpaths -w 1

Hope this will work for u..
Thanks..


On Wed, Jan 29, 2014 at 6:09 PM, Deepankar Patra <deepankarb...@gmail.com>wrote:

> Hi all,
>
> I am new to Apache Giraph. I am struggling to compile and run my code
> using apache giraph. I have got giraph installed properly, I have
> successfully tested shortest path example too. Now when I try to write my
> own code I'm unable to figure out how to compile it and run, the
> documentation in giraph.apache.org explains nothing about it. Any help
> will be highly appreciated.
>
> As per my understanding the main function is in GraphRunner class, we
> don't need to implement the main function ourselves, but then I've no idea
> what to do next.
>
> Thanks,
> Deepankar Patra
>

Reply via email to