hgahlot wrote:
> 
> I had the same problem but Amreshwari's suggestion solved it. I am porting
> a code from the 0.18.3 API to 0.20.2 API. I am now facing problems with
> the setting of keys through Configuration object. The value set during
> configuration using conf.setBoolean(<String value>, <default boolean
> value>) is not retrieved in the mapper. I then ported the WordCountv2.0
> example provided in the MapReduce tutorial and upgraded it to use the new
> API but it has the same problem. It works fine with the 0.18.3 API but
> fails in the upgraded version. When I try to get the name of the input
> file using 
> inputFile = conf.get("map.input.file");
> it prints null...
> Kindly let me know how to set values of these user-defined keys in the new
> API.
> 
using job.getConfiguration().set(...) instead of conf.set(...) solved it.
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Distributed-Cache-with-New-API-tp722187p955402.html
Sent from the Hadoop lucene-users mailing list archive at Nabble.com.

Reply via email to