giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kyle Orlando <>
Subject Re: Help needed for Running my own java programs in Giraph
Date Fri, 23 Aug 2013 19:05:25 GMT
Hi Vivek,

Sorry for the hasty response, I assumed the quick start guide covered that
(I guess it doesn't). What you need to do first is put all of your compiled
code into a jar file.  Then, you'll be utilizing the hadoop option
-libjars.  You also need to make sure that you set the hadoop classpath to
include the giraph jar you are using as well as your own jar. I actually
asked a similar question not too long ago; prior to this, I was just
combining everything into one jar.

Your code should pretty much follow this format, which is copied and paster
from a previous response by Claudio:

export HADOOP_CLASSPATH="giraph.jar:your.jar"
hadoop jar giraph.jar org.apache.giraph.GiraphRunner [ -D option ]*
-libjars your.jar your.package.ComputationClass [ GiraphRunner option e.g.
-vip -vif etc. ]*

On Fri, Aug 23, 2013 at 2:51 PM, Vivek Sembium <>wrote:

> Thank You for your response. I could run all the example programs. I want
> to place my development code in a different directory other than the giraph
> directory. I copied the to a different
> directory, compiled it(with a different package name). But I couldnt
> replace the "org.apache.giraph.examples.SimpleShortestPathsComputation"
> with my class file. It gives me a ClassNotFoundException. Please Guide me
> so that I can run any class file with all required methods (GIven the
> location of that file).
> On Sat, Aug 24, 2013 at 12:07 AM, Kyle Orlando <>wrote:
>> A "Quick Start" guide was recently added to the Giraph website. Now
>> learning Giraph is easier than ever!  Here:
>> On Fri, Aug 23, 2013 at 2:34 PM, Vivek Sembium <>wrote:
>>> I am a new user in giraph. I could run all example programs in Giraph.
>>> Can someone please guide me on how to run my own java program in giraph
>>> (Assuming I have my input file in jason format in HDFS).
>> --
>> Kyle Orlando
>> Computer Engineering Major
>> University of Maryland

Kyle Orlando
Computer Engineering Major
University of Maryland

View raw message