Thanks for the useful information! Muntasir.
From: Walaa Eldin Moustafa [mailto:[email protected]] Sent: Monday, October 12, 2015 11:41 AM To: [email protected] Subject: Re: lookup and set partitions for a graph processing job I have not found any. In my case, I implemented MasterGraphPartitioner, and WorkerGraphPartitioner, which are both specified in the GraphPartitionerFactory class (which you pass from the command line). MasterGraphPartitioner specifies the mapping from partitions to workers, and WorkerGraphPartitioner specifies the mapping from vertices to partitions. Thanks, Walaa. On Mon, Oct 12, 2015 at 9:33 AM, Rahman, Muntasir Raihan <[email protected]<mailto:[email protected]>> wrote: Hi, I have a follow-up question. Are there any tutorials/examples available that show I can use my own custom graph partitioner for Giraph? Thanks Muntasir. From: Walaa Eldin Moustafa [mailto:[email protected]<mailto:[email protected]>] Sent: Wednesday, October 07, 2015 4:53 PM To: [email protected]<mailto:[email protected]> Subject: Re: lookup and set partitions for a graph processing job There is no explicit API, but there is an option to set the partitioning strategy, which is giraph.graphPartitionerFactoryClass. The value of that option is set to HashPartitionerFactory by default. So you can look up this class and it will give you some information about the mapping you are looking for. On Wed, Oct 7, 2015 at 1:00 PM, Rahman, Muntasir Raihan <[email protected]<mailto:[email protected]>> wrote: Hi, I am new to Giraph and have a question about the partitioning API in Giraph. Does Giraph have an explicit API to lookup the current partition for a running job (vertex to server mapping), and setting the partition for a new job? Regards Muntasir.
