@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface LauncherExitCodes
Codes with a YARN prefix are YARN-related.
Many of the exit codes are designed to resemble HTTP error codes, squashed into a single byte. e.g 44 , "not found" is the equivalent of 404. The various 2XX HTTP error codes aren't followed; the Unix standard of "0" for success is used.
0-10: general command issues 30-39: equivalent to the 3XX responses, where those responses are considered errors by the application. 40-49: client-side/CLI/config problems 50-59: service-side problems. 60+ : application specific error codes
Modifier and Type | Field and Description |
---|---|
static int |
EXIT_BAD_CONFIGURATION
Exit code when the configurations in valid/incomplete: 49.
|
static int |
EXIT_CLIENT_INITIATED_SHUTDOWN
Exit code when a client requested service termination: 1.
|
static int |
EXIT_COMMAND_ARGUMENT_ERROR
Exit code when the command line doesn't parse: 40, or
when it is otherwise invalid.
|
static int |
EXIT_CONNECTIVITY_PROBLEM
Exit code on connectivity problems: 48.
|
static int |
EXIT_EXCEPTION_THROWN
Exit code when an exception was thrown from the service: 50.
|
static int |
EXIT_FAIL
Generic "false/fail" response: -1.
|
static int |
EXIT_FORBIDDEN
Forbidden action: 43.
|
static int |
EXIT_INTERRUPTED
Exit code when a control-C, kill -3, signal was picked up: 3.
|
static int |
EXIT_NOT_ACCEPTABLE
The command is somehow not acceptable: 46.
|
static int |
EXIT_NOT_FOUND
Something was not found: 44.
|
static int |
EXIT_OPERATION_NOT_ALLOWED
The operation is not allowed: 45.
|
static int |
EXIT_OTHER_FAILURE
Exit code when something happened but we can't be specific: 5.
|
static int |
EXIT_SERVICE_CREATION_FAILURE
The service instance could not be created: 56.
|
static int |
EXIT_SERVICE_LIFECYCLE_EXCEPTION
The service instance could not be created: 57.
|
static int |
EXIT_SERVICE_UNAVAILABLE
Service Unavailable; it may be available later: 53.
|
static int |
EXIT_SUCCESS
Success: 0.
|
static int |
EXIT_TASK_LAUNCH_FAILURE
Exit code when targets could not be launched: 2.
|
static int |
EXIT_UNAUTHORIZED
The request requires user authentication: 41.
|
static int |
EXIT_UNIMPLEMENTED
Unimplemented feature: 51.
|
static int |
EXIT_UNSUPPORTED_VERSION
The application does not support, or refuses to support this
version: 55.
|
static int |
EXIT_USAGE
Exit code when a usage message was printed: 42.
|
static final int EXIT_SUCCESS
static final int EXIT_FAIL
static final int EXIT_CLIENT_INITIATED_SHUTDOWN
static final int EXIT_TASK_LAUNCH_FAILURE
static final int EXIT_INTERRUPTED
static final int EXIT_OTHER_FAILURE
static final int EXIT_COMMAND_ARGUMENT_ERROR
Approximate HTTP equivalent: 400 Bad Request
static final int EXIT_UNAUTHORIZED
approximate HTTP equivalent: Approximate HTTP equivalent: 401 Unauthorized
static final int EXIT_USAGE
static final int EXIT_FORBIDDEN
Approximate HTTP equivalent: Approximate HTTP equivalent: 403: Forbidden
static final int EXIT_NOT_FOUND
Approximate HTTP equivalent: 404: Not Found
static final int EXIT_OPERATION_NOT_ALLOWED
Approximate HTTP equivalent: 405: Not allowed
static final int EXIT_NOT_ACCEPTABLE
Approximate HTTP equivalent: 406: Not Acceptable
static final int EXIT_CONNECTIVITY_PROBLEM
Approximate HTTP equivalent: 408: Request Timeout
static final int EXIT_BAD_CONFIGURATION
Approximate HTTP equivalent: 409: Conflict
static final int EXIT_EXCEPTION_THROWN
Approximate HTTP equivalent: 500 Internal Server Error
static final int EXIT_UNIMPLEMENTED
Approximate HTTP equivalent: 501: Not Implemented
static final int EXIT_SERVICE_UNAVAILABLE
Approximate HTTP equivalent: 503 Service Unavailable
static final int EXIT_UNSUPPORTED_VERSION
If raised, this is expected to be raised server-side and likely due to client/server version incompatibilities.
Approximate HTTP equivalent: 505: Version Not Supported
static final int EXIT_SERVICE_CREATION_FAILURE
static final int EXIT_SERVICE_LIFECYCLE_EXCEPTION
Copyright © 2021 Apache Software Foundation. All rights reserved.