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

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

[~eyang] Thanks for explaination. Let me explain my testing steps. I have not 
deleted file from hdfs in below steps

1. Launch an application with user hdfs using below command two times with same 
app name
{code:java}
./yarn app -launch sleeper-service 
../share/hadoop/yarn/yarn-service-examples/sleeper/sleeper.json -appTypes 
unit-test
{code}
App launch fails with error saying "Failed to create service sleeper-service, 
because it already exists."

2. Whereas when i launch an app with hdfs/[email protected] two times with same 
app name

App launch fails due to DIr existing on hdfs.

This behaviour is not same. Please do check once. Thanks

> 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