You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@giraph.apache.org by nishant gandhi <ni...@gmail.com> on 2014/03/30 12:37:26 UTC
help in compiling
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..
Re: help in compiling
Posted by Lukas Nalezenec <lu...@firma.seznam.cz>.
On 30.3.2014 12:37, nishant gandhi 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..
Hi,
You can use Maven Assembly plugin:
https://gist.github.com/lukasnalezenec/9878086
Lukas
Re: help in compiling
Posted by Jyoti Yadav <ra...@gmail.com>.
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
<ni...@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..
>