You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by Prasanth J <j....@gmail.com> on 2012/07/26 08:35:29 UTC
Max tuples that can be handled by a reducer
Hi
I wanted to find the maximum number of tuples a reducer can handle. For that I am using the following inside an UDF in a sampling job
maxTuples = Runtime.getRuntime.maxMemory() / tuple.getInMemorySize();
I am little skeptical about the maxMemory() usage as it will be different in sampling job and the actual job.
Does this always provide a good estimate of the max tuples a reducer can handle?
Thanks
-- Prasanth