public class DFSHAAdmin extends HAAdmin
| Constructor and Description |
|---|
DFSHAAdmin() |
| Modifier and Type | Method and Description |
|---|---|
static Configuration |
addSecurityConfiguration(Configuration conf)
Add the requisite security principal settings to the given Configuration,
returning a copy.
|
protected String |
getUsageString() |
static void |
main(String[] argv) |
protected HAServiceTarget |
resolveTarget(String nnId)
Try to map the given namenode ID to its service address.
|
protected int |
runCmd(String[] argv) |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
protected void |
setErrOut(PrintStream errOut) |
protected void |
setOut(PrintStream out) |
getServiceAddr, printUsage, rungetConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfprotected void setErrOut(PrintStream errOut)
protected void setOut(PrintStream out)
public void setConf(Configuration conf)
ConfigurablesetConf in interface ConfigurablesetConf in class HAAdminpublic static Configuration addSecurityConfiguration(Configuration conf)
conf - the original configprotected HAServiceTarget resolveTarget(String nnId)
resolveTarget in class HAAdminprotected String getUsageString()
getUsageString in class HAAdminCopyright © 2013 Apache Software Foundation. All rights reserved.