Re: Mapreduce Job' user

2012-02-16 Thread Harsh J
Joey has it right if you are indeed using a security-enabled release, and the configuration for the same is documented at http://hadoop.apache.org/common/docs/r1.0.0/Secure_Impersonation.html On Fri, Feb 17, 2012 at 1:13 AM, Joey Echeverria wrote: > Are you using one of the security enabled relea

Re: Mapreduce Job' user

2012-02-16 Thread Vamshi Krishna
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

Re: Mapreduce Job' user

2012-02-16 Thread Joey Echeverria
Are you using one of the security enabled releases of Hadoop (0.20.20x,1.0.x,0.23.x,CDH3)? Assuming you are, you need to do something like the following to impersonate a user: You'll need to modify your code to use something like this: UserGroupInformation.createRemoteUser("cuser").doAs(new Privi