Member since
06-09-2015
1
Post
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
10235 | 08-03-2015 01:57 PM |
04-27-2016
07:56 AM
Hello, yarn makes three checks ( source code ) : compare the name of the user with string root with string compare (strcmp(user, "root") == 0 verify if your user is white listed ( !is_whitelisted(user) check the uid of the user with minuid. ( user_info->pw_uid < min_uid ) For now the only workaround I found is to create a new user with UID and GID equal to 0 and insert the name of the user in white listed and set min user id to 0. There is an important motivation to use root: if you need to use distcp on a target location that is an NFS filesystem or a sharable filesystem mounted local on the datanode/workernode to make a backup. Infact in that case, if you run a job with a normal user, it's not possible to change the owner of the file, so the distcp backup will fails. Obviously if you run as root it will fail too for the hard coded control. Kind Regards
... View more