Using DistributedCache in Hadoop by Yavcular
In the above link, it is described how to use DistributedCache in Hadoop in an easy to understand way. But the problem is, when I trt to compile the code, I get the following error:
non-static method loadIdUrlMapping(org.apache.hadoop.mapreduce.Mapper.Context) cannot be referenced from a static context
loadIdUrlMapping(context);
What is the workaround? I can not change the Mapper class to non-static, and when I change loadIdUrlMapping
method signature to static, then I can not access the idmap
HashSet