[ 
https://issues.apache.org/jira/browse/YARN-8384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16497403#comment-16497403
 ] 

Eric Yang commented on YARN-8384:
---------------------------------

[~leftnoteasy] I verified the file permission is setup correctly with this 
patch:

{code}
[root@eyang-4 container_1527798256852_0001_01_000003]# ls -la
total 4
drwxr-s---. 2 nobody hadoop  40 May 31 20:24 .
drwxr-s---. 3 nobody hadoop  51 May 31 20:24 ..
-rw-r-----. 1 nobody hadoop   0 May 31 20:24 stderr.txt
-rw-r-----. 1 nobody hadoop 460 May 31 20:24 stdout.txt
{code}

> stdout, stderr logs of a Native Service container is coming with group as 
> nobody
> --------------------------------------------------------------------------------
>
>                 Key: YARN-8384
>                 URL: https://issues.apache.org/jira/browse/YARN-8384
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: yarn-native-services
>            Reporter: Sunil Govindan
>            Assignee: Eric Yang
>            Priority: Critical
>              Labels: docker
>         Attachments: YARN-8384.001.patch
>
>
> When {{yarn.nodemanager.linux-container-executor.nonsecure-mode.limit-users}} 
> is set to true, and 
> {{yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user}} is 
> set to nobody.
> This will cause the docker to run as nobody:nobody in yarn mode.
> The log files will be initialized as nobody:nobody:
> {noformat}
> rw-rr- 1 nobody hadoop 354 May 31 17:33 container-localizer-syslog
> rw-rr- 1 nobody hadoop 1042 May 31 17:35 directory.info
> rw-r---- 1 nobody hadoop 4944 May 31 17:35 launch_container.sh
> rw-rr- 1 nobody hadoop 440 May 31 17:35 prelaunch.err
> rw-rr- 1 nobody hadoop 100 May 31 17:35 prelaunch.out
> rw-r---- 1 nobody nobody 18733 May 31 17:37 stderr.txt
> rw-r---- 1 nobody nobody 400 May 31 17:35 stdout.txt
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to