YARN-4130. Duplicate declaration of ApplicationId in RMAppManager#submitApplication method. (Kai Sasaki via rohithsharmaks)
(cherry picked from commit 656c8f9527
)
This commit is contained in:
parent
e3f1a02f50
commit
e3fcb711d6
|
@ -979,6 +979,9 @@ Release 2.8.0 - UNRELEASED
|
|||
YARN-4251. TestAMRMClientOnRMRestart#testAMRMClientOnAMRMTokenRollOverOnRMRestart
|
||||
is failing. (Brahma Reddy Battula via ozawa)
|
||||
|
||||
YARN-4130. Duplicate declaration of ApplicationId in RMAppManager#submitApplication method.
|
||||
(Kai Sasaki via rohithsharmaks)
|
||||
|
||||
Release 2.7.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -281,13 +281,13 @@ public class RMAppManager implements EventHandler<RMAppManagerEvent>,
|
|||
|
||||
RMAppImpl application =
|
||||
createAndPopulateNewRMApp(submissionContext, submitTime, user, false);
|
||||
ApplicationId appId = submissionContext.getApplicationId();
|
||||
Credentials credentials = null;
|
||||
try {
|
||||
credentials = parseCredentials(submissionContext);
|
||||
if (UserGroupInformation.isSecurityEnabled()) {
|
||||
this.rmContext.getDelegationTokenRenewer().addApplicationAsync(appId,
|
||||
credentials, submissionContext.getCancelTokensWhenComplete(),
|
||||
this.rmContext.getDelegationTokenRenewer()
|
||||
.addApplicationAsync(applicationId, credentials,
|
||||
submissionContext.getCancelTokensWhenComplete(),
|
||||
application.getUser());
|
||||
} else {
|
||||
// Dispatcher is not yet started at this time, so these START events
|
||||
|
|
Loading…
Reference in New Issue