hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen O'Malley <o...@yahoo-inc.com>
Subject Re: MapReduce: specify a *DFS* path for mapred.jar property
Date Thu, 31 Aug 2006 18:12:17 GMT

On Aug 31, 2006, at 9:48 AM, Frédéric Bertin wrote:

> Doug Cutting wrote:
>> Frédéric Bertin wrote:
>>>>             *// Set the user's name and working directory*
>>>>             String user = System.getProperty("user.name");
>>>>             job.setUser(user != null ? user : "Dr Who");
>>>>             if (job.getWorkingDirectory() == null) {
>>>>               job.setWorkingDirectory(fs.getWorkingDirectory 
>>>> ());                      }
>>
>> This should run clientside, since it depends on the username,  
>> which is different on the server.
> then, what about passing the username as a parameter to the  
> JobSubmissionProtocol.submitJob(...) ? This avoids loading the  
> whole JobConf clientside just to set the username.

I don't understand what the problem is. The user sets up their job by  
creating a JobConf(). Do you already have the job.xml in dfs and just  
want to resubmit it? I don't think that will ever be the typical  
case.  I thought the original topic of this thread was the jar file.

-- Owen
Mime
View raw message