Hi Jose,
According to my knowledge, if you want to use any options with -D , at the
commandline when running jobs, you cannot use any options other than the
ones listed in the link
http://hadoop.apache.org/common/docs/current/mapred-default.html  .
Therefore you cannot use  "user.name" . The first argument of the line you
have mentioned  i.e System.set("user.name", "desiredUserName") , should be
one of those properties mentioned in the above link and accordingly you can
set that value appropriately.

On Thu, Feb 16, 2012 at 11:21 PM, Jose Luis Soler <joso...@gmail.com> wrote:

> Hi All,
>
> Is there some way to force the owner (user name) of a Job sent to a Hadoop
> cluster?
>
> I'm trying to use the following code when configuring the job:
>
> JobConf job = new JobConf();
>
> job.setUser("desiredUserName")**;
>
> but it seems to have no effect as the job owner is sent as the user I'm
> logged into the system.
>
> Even I tried  this:
>
> System.set("user.name", "desiredUserName")
>
> and this, at the command line when running the job:
>
> -Duser.name=desiredUserName
>
> getting no different result.
>
> Thanks for your help.
>
> Jose
>
>


-- 
*Regards*
*
Vamshi Krishna
*

Reply via email to