giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jyoti Yadav <rao.jyoti26ya...@gmail.com>
Subject Re: help in compiling
Date Sun, 30 Mar 2014 17:29:02 GMT
Hi Nishant....
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 Sun, Mar 30, 2014 at 4:07 PM, nishant gandhi
<nishantgandhi99@gmail.com>wrote:

> I recently shifted my work on giraph. I ran already available example but
> not able to run my own code. can you suggest something what i should be
> missing? I normally get error of ClassNotFound while compiling even though
> i give classpath of giraph-core.jar and hadoop-core.jar while compiling..
> Let me know if any book or tutorial series avilable for giraph..
>

Mime
View raw message