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

Eric Yang commented on YARN-10310:
----------------------------------

[~BilwaST] Without the patch, I was unable to resubmit app with the same name 
twice.  If you deleted service json from hdfs, you are allowed to submit the 
app again.  I think this is working as designed.  The check is happening based 
on data on hdfs rather than what is in resource manager memory.  This is safer 
to prevent data loss in case resource manager crashes.  In my system 
hdfs/[email protected] mapped to hdfs user principal.  It appears that your 
side didn't.  I am not sure how the difference happens, and may need more 
information.

> 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/[email protected]. 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to