@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_CONFIGURATIONExit code when the configurations in valid/incomplete: 49. | 
| static int | EXIT_CLIENT_INITIATED_SHUTDOWNExit code when a client requested service termination: 1. | 
| static int | EXIT_COMMAND_ARGUMENT_ERRORExit code when the command line doesn't parse: 40, or
 when it is otherwise invalid. | 
| static int | EXIT_CONNECTIVITY_PROBLEMExit code on connectivity problems: 48. | 
| static int | EXIT_EXCEPTION_THROWNExit code when an exception was thrown from the service: 50. | 
| static int | EXIT_FAILGeneric "false/fail" response: -1. | 
| static int | EXIT_FORBIDDENForbidden action: 43. | 
| static int | EXIT_INTERRUPTEDExit code when a control-C, kill -3, signal was picked up: 3. | 
| static int | EXIT_NOT_ACCEPTABLEThe command is somehow not acceptable: 46. | 
| static int | EXIT_NOT_FOUNDSomething was not found: 44. | 
| static int | EXIT_OPERATION_NOT_ALLOWEDThe operation is not allowed: 45. | 
| static int | EXIT_OTHER_FAILUREExit code when something happened but we can't be specific: 5. | 
| static int | EXIT_SERVICE_CREATION_FAILUREThe service instance could not be created: 56. | 
| static int | EXIT_SERVICE_LIFECYCLE_EXCEPTIONThe service instance could not be created: 57. | 
| static int | EXIT_SERVICE_UNAVAILABLEService Unavailable; it may be available later: 53. | 
| static int | EXIT_SUCCESSSuccess: 0. | 
| static int | EXIT_TASK_LAUNCH_FAILUREExit code when targets could not be launched: 2. | 
| static int | EXIT_UNAUTHORIZEDThe request requires user authentication: 41. | 
| static int | EXIT_UNIMPLEMENTEDUnimplemented feature: 51. | 
| static int | EXIT_UNSUPPORTED_VERSIONThe application does not support, or refuses to support this
 version: 55. | 
| static int | EXIT_USAGEExit 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 © 2024 Apache Software Foundation. All rights reserved.