Somnath, The Partitioner is applied in the Map-phase. The number (< n) you'd return would serve as the ReduceID the K-V pair has to go to. Why do you seek a Reducer ID here?
Perhaps I did not get your question exactly, care to rephrase? On Tue, Jun 14, 2011 at 7:06 PM, somnath <[email protected]> wrote: > By using context,getTaskAttemptID().getTaskID(), we can have the task id of > the reducer but this code does not work for partitioner , So can anyone > tell me how to get the Reducer id in partitioner. I am using Hadoop 0.21 > version. > > -- > View this message in context: > http://hadoop-common.472056.n3.nabble.com/How-to-access-the-Reducer-id-in-partitioner-tp3063040p3063040.html > Sent from the Users mailing list archive at Nabble.com. > -- Harsh J
