hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Referencing files in job file from code
Date Thu, 11 Oct 2012 14:26:36 GMT
Hi Bai,

What exactly do you mean by a 'job file' and have you considered using
DistributedCache, as detailed at

On Thu, Oct 11, 2012 at 7:44 PM, Bai Shen <baishen.lists@gmail.com> wrote:
> I'm trying to reference a directory inside my job file from my code.  I
> have a third party library that I need to pass a File object to which
> references the directory in the job file.
> How do I go about doing this?  If I just do new File("dir") it looks for
> the directory on the client machine that I'm calling the job from instead
> of the directory in the actual job file itself.
> Thanks.

Harsh J

View raw message