| Package | Description |
|---|---|
| org.apache.hadoop.security | |
| org.apache.hadoop.service.launcher |
This package contains classes, interfaces and exceptions to launch
YARN services from the command line.
|
| org.apache.hadoop.util |
Common utilities.
|
| Modifier and Type | Class | Description |
|---|---|---|
static class |
KDiag.KerberosDiagsFailure |
Diagnostics failures return the exit code 41, "unauthorized".
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
ServiceLaunchException |
A service launch exception that includes an exit code.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected static ExitUtil.ExitException |
ServiceLauncher.convertToExitException(java.lang.Throwable thrown) |
Convert an exception to an
ExitException. |
ExitUtil.ExitException |
ServiceLauncher.getServiceException() |
Get the exit exception used to end this service.
|
ExitUtil.ExitException |
ServiceLauncher.launchService(Configuration conf,
java.util.List<java.lang.String> processedArgs,
boolean addShutdownHook,
boolean execute) |
Launch a service catching all exceptions and downgrading them to exit codes
after logging.
|
ExitUtil.ExitException |
ServiceLauncher.launchService(Configuration conf,
S instance,
java.util.List<java.lang.String> processedArgs,
boolean addShutdownHook,
boolean execute) |
Launch a service catching all exceptions and downgrading them to exit codes
after logging.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
ServiceLauncher.exit(ExitUtil.ExitException ee) |
Exit the JVM using an exception for the exit code and message,
invoking
ExitUtil.terminate(ExitUtil.ExitException). |
| Modifier and Type | Method | Description |
|---|---|---|
static ExitUtil.ExitException |
ExitUtil.getFirstExitException() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
ExitUtil.terminate(ExitUtil.ExitException ee) |
Exits the JVM if exit is enabled, rethrow provided exception or any raised error otherwise.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
ExitUtil.terminate(int status) |
Like
ExitUtil.terminate(int, Throwable) without a message. |
static void |
ExitUtil.terminate(int status,
java.lang.String msg) |
Terminate the current process.
|
static void |
ExitUtil.terminate(int status,
java.lang.Throwable t) |
Like
ExitUtil.terminate(int, String) but uses the given throwable to
build the message to display or throw as an
ExitUtil.ExitException. |
static void |
ExitUtil.terminate(ExitUtil.ExitException ee) |
Exits the JVM if exit is enabled, rethrow provided exception or any raised error otherwise.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.