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

Bilwa S T commented on YARN-10310:
----------------------------------

Hi [~eyang]

Maybe you can delete file from hdfs and launch an app again. You will be 
allowed to submit with same name. ie because Service client [send 
hdfs/had...@example.com|mailto:send%C2%A0hdfs/had...@example.com] as user 
whereas ClientRMService uses hdfs as user.

Whereas with patch , if you launch second app with same name as first app it 
will throw Failure to create service, maybe cause by existing instance of 
sleeper service.

> YARN Service - User is able to launch a service with same name
> --------------------------------------------------------------
>
>                 Key: YARN-10310
>                 URL: https://issues.apache.org/jira/browse/YARN-10310
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Bilwa S T
>            Assignee: Bilwa S T
>            Priority: Major
>         Attachments: YARN-10310.001.patch
>
>
> As ServiceClient uses UserGroupInformation.getCurrentUser().getUserName() to 
> get user whereas ClientRMService#submitApplication uses 
> UserGroupInformation.getCurrentUser().getShortUserName() to set application 
> username.
> In case of user with name hdfs/had...@hadoop.com. below condition fails
> ClientRMService#getApplications()
> {code:java}
> if (users != null && !users.isEmpty() &&
>           !users.contains(application.getUser())) {
>         continue;
>  }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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