You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@giraph.apache.org by Martin Neumann <mn...@spotify.com> on 2013/12/11 13:55:10 UTC

Giraph running custom giraph job

Hej,

I did run the example from the project and I now want to run my own Giraph
job. But I'm not 100% sure how.

I created a new java project with maven including Giraph 1.0.0 core as
dependecy and created the following classes: Vetex, Combiner,
EdgeInputFormat, VerteOutputFormat
Do I have to implement a "Runner" as well for this if yes what is super
class I have to implement. Alternative can I use the GiraphRunner and if so
how do I tell it about the Combiner, Vertex etc.

If anyone has a link to a good step by step example of how to create your
own jar to run with Giraph that would be very helpfull.

In case its important I'm running giraph from the Apace BigTop project. I
assume its 1.1.0


thanks for the help
martin

Re: Giraph running custom giraph job

Posted by Martin Neumann <mn...@spotify.com>.
Thanks for the answer, but now I run the problem that I get the following
exception:
Exception in thread "main" java.lang.IllegalStateException: Giraph's
estimated cluster heap 2048MB ask is greater than the current available
cluster heap of 0MB.

I guess its a configuration issue? Google didn't find anything on this.
Anyone an idea what to do?

cheers Martin


On Wed, Dec 11, 2013 at 3:42 PM, Claudio Martella <
claudio.martella@gmail.com> wrote:

> you should just create a jar with your classes inside, and use the
> GiraphRunner as it is used in the example in the tutorial on the homepage.
> Just use your classes then instead of the one used in the tutorial.
>
>
> On Wed, Dec 11, 2013 at 1:55 PM, Martin Neumann <mn...@spotify.com>wrote:
>
>> Hej,
>>
>> I did run the example from the project and I now want to run my own
>> Giraph job. But I'm not 100% sure how.
>>
>> I created a new java project with maven including Giraph 1.0.0 core as
>> dependecy and created the following classes: Vetex, Combiner,
>> EdgeInputFormat, VerteOutputFormat
>> Do I have to implement a "Runner" as well for this if yes what is super
>> class I have to implement. Alternative can I use the GiraphRunner and if so
>> how do I tell it about the Combiner, Vertex etc.
>>
>>  If anyone has a link to a good step by step example of how to create
>> your own jar to run with Giraph that would be very helpfull.
>>
>> In case its important I'm running giraph from the Apace BigTop project. I
>> assume its 1.1.0
>>
>>
>> thanks for the help
>> martin
>>
>>
>>
>
>
> --
>    Claudio Martella
>    claudio.martella@gmail.com
>

Re: Giraph running custom giraph job

Posted by Claudio Martella <cl...@gmail.com>.
you should just create a jar with your classes inside, and use the
GiraphRunner as it is used in the example in the tutorial on the homepage.
Just use your classes then instead of the one used in the tutorial.


On Wed, Dec 11, 2013 at 1:55 PM, Martin Neumann <mn...@spotify.com>wrote:

> Hej,
>
> I did run the example from the project and I now want to run my own Giraph
> job. But I'm not 100% sure how.
>
> I created a new java project with maven including Giraph 1.0.0 core as
> dependecy and created the following classes: Vetex, Combiner,
> EdgeInputFormat, VerteOutputFormat
> Do I have to implement a "Runner" as well for this if yes what is super
> class I have to implement. Alternative can I use the GiraphRunner and if so
> how do I tell it about the Combiner, Vertex etc.
>
>  If anyone has a link to a good step by step example of how to create your
> own jar to run with Giraph that would be very helpfull.
>
> In case its important I'm running giraph from the Apace BigTop project. I
> assume its 1.1.0
>
>
> thanks for the help
> martin
>
>
>


-- 
   Claudio Martella
   claudio.martella@gmail.com