giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavian Jacquot <>
Subject Re: Custom partitioning in giraph
Date Fri, 04 Sep 2015 17:32:31 GMT
I did an internship in that field. I used spinner to compute a better
partitionning, here is the paper : and
the website

I'm not sure if you want to use giraph to compute a patitioning or use it
or both ?
Anyway look at
it will show you an example.
In fact you need to extends HashWorkerPartitioner  and override

Also you need to change the type of vertex id in your compute class by
PartitionnedLongWritable in order to map vertex id and partition id.
There is an option giraph.graphPartitionerFactoryClass you need to change
to use your own partitioner class :

Sorry if it's not very clear, it's been 6 month i didn't look at this.

If your goal is to improve perf with partitionning you may be desapointed
because a non-random partitioning will cause an overload on one of the
machines. The hack to maintain perf is to assign more partitions per worker
(128 in Spinner paper).


2015-09-03 12:21 GMT+02:00 prateeksha varshney <>:

> Hi
> I am new to giraph and want to know how one can change the partitioning
> algorithm of giraph.
> In other words I want to repartition the graph using a different algorithm.
> Any suggestions and solutions for this will be highly appreciated.
> Thanks
> Prateeksha

View raw message