@Private
public final class AMRMClientUtils
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
APP_ALREADY_REGISTERED_MESSAGE |
|
static java.lang.String |
EXPECTED_HB_RESPONSEID_MESSAGE |
|
static int |
PRE_REGISTER_RESPONSE_ID |
|
static java.lang.String |
RECEIVED_HB_RESPONSEID_MESSAGE |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
addToOutstandingSchedulingRequests(java.util.Collection<org.apache.hadoop.yarn.api.records.SchedulingRequest> requests,
java.util.Map<java.util.Set<java.lang.String>,java.util.List<org.apache.hadoop.yarn.api.records.SchedulingRequest>> outstandingSchedRequests) |
|
static java.lang.String |
assembleInvalidResponseIdExceptionMessage(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
int expected,
int received) |
Generate the exception message when RM receives an AM heartbeat with
invalid responseId.
|
static <T> T |
createRMProxy(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol,
org.apache.hadoop.security.UserGroupInformation user,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token) |
Create a proxy for the specified protocol.
|
static int |
getNextResponseId(int responseId) |
|
static boolean |
isMatchingSchedulingRequests(org.apache.hadoop.yarn.api.records.SchedulingRequest schedReq1,
org.apache.hadoop.yarn.api.records.SchedulingRequest schedReq2) |
|
static int |
parseExpectedResponseIdFromException(java.lang.String exceptionMessage) |
Parse the expected responseId from the exception generated by RM when
processing AM heartbeat.
|
static void |
removeFromOutstandingSchedulingRequests(java.util.Collection<org.apache.hadoop.yarn.api.records.Container> containers,
java.util.Map<java.util.Set<java.lang.String>,java.util.List<org.apache.hadoop.yarn.api.records.SchedulingRequest>> outstandingSchedRequests) |
public static final int PRE_REGISTER_RESPONSE_ID
public static final java.lang.String APP_ALREADY_REGISTERED_MESSAGE
public static final java.lang.String EXPECTED_HB_RESPONSEID_MESSAGE
public static final java.lang.String RECEIVED_HB_RESPONSEID_MESSAGE
@Public
@Unstable
public static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration,
java.lang.Class<T> protocol,
org.apache.hadoop.security.UserGroupInformation user,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token)
throws java.io.IOException
T - Type information of the proxyconfiguration - Configuration to generate ClientRMProxyprotocol - Protocol for the proxyuser - the user on whose behalf the proxy is being createdtoken - the auth token to use for connectionjava.io.IOException - on failurepublic static java.lang.String assembleInvalidResponseIdExceptionMessage(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
int expected,
int received)
appAttemptId - the app attemptexpected - the expected responseId valuereceived - the received responseId valuepublic static int parseExpectedResponseIdFromException(java.lang.String exceptionMessage)
exceptionMessage - the exception message thrown by RMpublic static int getNextResponseId(int responseId)
public static void addToOutstandingSchedulingRequests(java.util.Collection<org.apache.hadoop.yarn.api.records.SchedulingRequest> requests,
java.util.Map<java.util.Set<java.lang.String>,java.util.List<org.apache.hadoop.yarn.api.records.SchedulingRequest>> outstandingSchedRequests)
public static boolean isMatchingSchedulingRequests(org.apache.hadoop.yarn.api.records.SchedulingRequest schedReq1,
org.apache.hadoop.yarn.api.records.SchedulingRequest schedReq2)
public static void removeFromOutstandingSchedulingRequests(java.util.Collection<org.apache.hadoop.yarn.api.records.Container> containers,
java.util.Map<java.util.Set<java.lang.String>,java.util.List<org.apache.hadoop.yarn.api.records.SchedulingRequest>> outstandingSchedRequests)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.