I have a lot of files stored in the distributed cache, each corresponding to a user id. I want to attach a specific file corresponding to a particular user id(which will be the key of the reducer), to a particular reduce task. But I am not able to do so, because, I read the files from distributed cache using the configure method, which comes before the reduce method in the reduce class. So I cannot access the keys of the reduce method in the configure method of the reduce class, and hence can't read only the file that I want to. Pls help me.
class reduce{
void configure(args)
{
/*I can a particular file from the Path[] here.
I want to select the file corresponding to the key of the reduce method and pass its
contents to the reduce method. I am not able to do this as I can't access the key of
the reduce method.*/
}
void reduce(args)
{
}
}