Calling a non-static method from within static Map Class in Hadoop
===

[Using DistributedCache in Hadoop by Yavcular][1]

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
            cacheItemset(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

  [1]: http://yaseminavcular.blogspot.kr/2010/11/using-distributed-cache-in-hadoop.html