Class InvalidResourceRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidLabelResourceRequestException
This exception is thrown when a resource requested via
ResourceRequest in the
ApplicationMasterProtocol.allocate(AllocateRequest) API is out of the
range of the configured lower and upper limits on resources.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInvalidResourceRequestException(String message) InvalidResourceRequestException(String message, Throwable cause) InvalidResourceRequestException(String message, InvalidResourceRequestException.InvalidResourceType invalidResourceType) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
LESS_THAN_ZERO_RESOURCE_MESSAGE_TEMPLATE
- See Also:
-
GREATER_THAN_MAX_RESOURCE_MESSAGE_TEMPLATE
- See Also:
-
UNKNOWN_REASON_MESSAGE_TEMPLATE
- See Also:
-
-
Constructor Details
-
InvalidResourceRequestException
-
InvalidResourceRequestException
-
InvalidResourceRequestException
public InvalidResourceRequestException(String message, InvalidResourceRequestException.InvalidResourceType invalidResourceType) -
InvalidResourceRequestException
-
-
Method Details
-
getInvalidResourceType
-