giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepankar Patra <>
Subject Re: Help needed in Compilation and execution of a giraph code(Giraph noob)
Date Wed, 29 Jan 2014 15:00:49 GMT
Hi Jyoti,

Thanks for the help. I tried your steps, while trying "mvn compile" I get
build failure message with these two warnings:
[INFO] Building Apache Giraph Examples 1.1.0-SNAPSHOT
[WARNING] The POM for org.apache.giraph:giraph-core:jar:1.1.0-SNAPSHOT is
missing, no dependency information available
org.apache.giraph:giraph-core:jar:tests:1.1.0-SNAPSHOT is missing, no
dependency information available

and this error message:
[ERROR] Failed to execute goal on project giraph-examples: Could not
resolve dependencies for project
org.apache.giraph:giraph-examples:jar:1.1.0-SNAPSHOT: The following
artifacts could not be resolved:
org.apache.giraph:giraph-core:jar:tests:1.1.0-SNAPSHOT: Failure to find
org.apache.giraph:giraph-core:jar:1.1.0-SNAPSHOT in was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced -> [Help 1]

I dont know much of maven, tried google-ing, but it didn't help.


On 29 January 2014 19:08, Jyoti Yadav <> wrote:

> 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-
org.apache.giraph.GiraphRunner org.apache.giraph.examples.your_program_name -vif
-vip /user/hduser/input/tiny_graph.txt -of
-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 <>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 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

View raw message