@InterfaceAudience.Private public abstract class ServerCommandLine extends Configured
| Constructor and Description |
|---|
ServerCommandLine() |
| Modifier and Type | Method and Description |
|---|---|
void |
doMain(String[] args)
Parse and run the given command line.
|
protected abstract String |
getUsage()
Implementing subclasses should return a usage string to print out.
|
static void |
logJVMInfo()
Log information about the currently running JVM.
|
static void |
logProcessInfo(Configuration conf)
Logs information about the currently running JVM process including
the environment variables.
|
protected void |
usage(String message)
Print usage information for this command line.
|
protected abstract String getUsage()
protected void usage(String message)
message - if not null, print this message before the usage info.public static void logJVMInfo()
public static void logProcessInfo(Configuration conf)
"hbase.envvars.logging.disabled" to "true".
If enabled, you can also exclude environment variables containing
certain substrings by setting "hbase.envvars.logging.skipwords"
to comma separated list of such substrings.
public void doMain(String[] args)
run().