[
https://issues.apache.org/jira/browse/YARN-10310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17137833#comment-17137833
]
Eric Yang commented on YARN-10310:
----------------------------------
[~BilwaST] Thanks for explaining this. If application type is unit-test, and
user purposely delete the json file of previous instance of the yarn-service.
This would allow second instance of the service to run. YARN allows multiple
application submission of the same name, if the application type is unit-test
or mapreduce. verifyNoLiveAppInRM only safe guards application type of
yarn-service. By using appTypes unit-test, you are triggering unintended
approach to launch yarn-service. This is not a bug in YARN service, but how
user rigged the system to attempt to trigger unintended code execution path.
By shortening the username, it will not prevent verifyNoLiveAppInRM to throw
exception for unit-test application type neither. This is working as designed
for yarn-service, and allows services and applications co-exist in the same
system with different working mode. My recommendation is to submit the app
without appTypes to avoid slipping pass verifyNoLiveAppInRM.
> 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]