hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yaozhen Pan <itzhak....@gmail.com>
Subject Re: DistributedCache adds prefix to the file
Date Thu, 16 Jun 2011 02:26:16 GMT

I solved it by using absolute path of cache file.
The code looks like this:
Path(strCacheFile).makeQualified(fs).toUri(), conf);*

On Thu, Jun 16, 2011 at 4:03 AM, Sergey Bartunov <sbos.net@gmail.com> wrote:

> Hello. I'm using DistributedCache at first time, and I have found that
> it adds some prefixes to the files. For example, the original file was
> "test.txt", it became "localhosttest.txt" in the cache.
> How to handle such things? Just see if cache file ends with original
> filename?

View raw message