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

Eric Yang commented on YARN-7816:
---------------------------------

ServiceClient is performed in doAs call, using System.getProperty("user.name") 
might return YARN service user instead of end user username.  It would be good 
to change the retrieval of username by calling: 
UserGroupInformation.getCurrentUser();

> YARN Service - Two different users are unable to launch a service of the same 
> name
> ----------------------------------------------------------------------------------
>
>                 Key: YARN-7816
>                 URL: https://issues.apache.org/jira/browse/YARN-7816
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: applications
>            Reporter: Gour Saha
>            Assignee: Gour Saha
>            Priority: Major
>         Attachments: YARN-7816.001.patch, YARN-7816.002.patch
>
>
> Now that YARN-7605 is committed, I am able to create a service in an 
> unsecured cluster from cmd line as the logged in user. However after creating 
> an app of name "myapp" say as user A, and then I login as a different user 
> user B, I am unable to create a service of the exact same name ("myapp" in 
> this case). This feature should be supported in a multi-user setup.



--
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