You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Evert Lammerts <Ev...@sara.nl> on 2012/08/08 12:10:39 UTC

getLocalCacheFiles

Hi all,

DistributedCache.getLocalCacheFiles does not seem to work correctly in 0.20.205.0. In my Mapper I need a local filesystem path on the cluster nodes. getLocalCacheFiles is not populated though, and always returns null. Calling getCacheFiles in my Mapper gives me the URI's of the cacheFiles in the conf object, which shows DistributedCache.addCacheFile at least added the files to the configuration. The file I'm trying to get access to through the DistributedCache is alvailable in HDFS - a dfs -ls confirms this.

In see some other posts related to this issue (a recent one in https://issues.apache.org/jira/browse/MRUNIT-124), but no workarounds or solutions.

Any suggestions?

- Evert Lammerts