YARN-10392: Fix typos Cotext related to AMRMProxyApplicationContext

This commit is contained in:
Sungpeo Kook 2020-08-07 09:41:54 +09:00
parent a2610e21ed
commit 786558259e
6 changed files with 11 additions and 11 deletions

View File

@ -67,7 +67,7 @@ public interface AMRMProxyApplicationContext {
* Gets the NMContext object.
* @return the NMContext.
*/
Context getNMCotext();
Context getNMContext();
/**
* Gets the credentials of this application.

View File

@ -144,7 +144,7 @@ public class AMRMProxyApplicationContextImpl implements
}
@Override
public Context getNMCotext() {
public Context getNMContext() {
return nmContext;
}

View File

@ -159,9 +159,9 @@ public abstract class AbstractRequestInterceptor implements
* @return the NMSS instance
*/
public NMStateStoreService getNMStateStore() {
if (this.appContext == null || this.appContext.getNMCotext() == null) {
if (this.appContext == null || this.appContext.getNMContext() == null) {
return null;
}
return this.appContext.getNMCotext().getNMStateStore();
return this.appContext.getNMContext().getNMStateStore();
}
}

View File

@ -95,7 +95,7 @@ public final class DefaultRequestInterceptor extends
private ApplicationMasterProtocol createRMClient(
AMRMProxyApplicationContext appContext, final Configuration conf)
throws IOException, InterruptedException {
if (appContext.getNMCotext().isDistributedSchedulingEnabled()) {
if (appContext.getNMContext().isDistributedSchedulingEnabled()) {
return user.doAs(
new PrivilegedExceptionAction<DistributedSchedulingAMProtocol>() {
@Override
@ -144,7 +144,7 @@ public final class DefaultRequestInterceptor extends
registerApplicationMasterForDistributedScheduling
(RegisterApplicationMasterRequest request) throws YarnException,
IOException {
if (getApplicationContext().getNMCotext()
if (getApplicationContext().getNMContext()
.isDistributedSchedulingEnabled()) {
LOG.info("Forwarding registerApplicationMasterForDistributedScheduling" +
"request to the real YARN RM");
@ -161,7 +161,7 @@ public final class DefaultRequestInterceptor extends
throws YarnException, IOException {
LOG.debug("Forwarding allocateForDistributedScheduling request" +
"to the real YARN RM");
if (getApplicationContext().getNMCotext()
if (getApplicationContext().getNMContext()
.isDistributedSchedulingEnabled()) {
DistributedSchedulingAllocateResponse allocateResponse =
((DistributedSchedulingAMProtocol)rmClient)

View File

@ -87,11 +87,11 @@ public final class DistributedScheduler extends AbstractRequestInterceptor {
public void init(AMRMProxyApplicationContext applicationContext) {
super.init(applicationContext);
initLocal(applicationContext.getNMCotext().getNodeStatusUpdater()
initLocal(applicationContext.getNMContext().getNodeStatusUpdater()
.getRMIdentifier(),
applicationContext.getApplicationAttemptId(),
applicationContext.getNMCotext().getContainerAllocator(),
applicationContext.getNMCotext().getNMTokenSecretManager(),
applicationContext.getNMContext().getContainerAllocator(),
applicationContext.getNMContext().getNMTokenSecretManager(),
applicationContext.getUser());
}

View File

@ -74,7 +74,7 @@ import org.apache.hadoop.yarn.webapp.util.WebAppUtils;
* <ul>
* <li>serviceContext : These services called as <b>Always On</b> services.
* Services that need to run always irrespective of the HA state of the RM.</li>
* <li>activeServiceCotext : Active services context. Services that need to run
* <li>activeServiceContext : Active services context. Services that need to run
* only on the Active RM.</li>
* </ul>
* <p>