@InterfaceAudience.Private
public abstract class ServerCommandLine
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
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(org.apache.hadoop.conf.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(org.apache.hadoop.conf.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()
.Copyright © 2007–2019 Cloudera. All rights reserved.