public class DFSHAAdmin extends HAAdmin
HAAdmin.UsageInfo| 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 Collection<String> |
getTargetIds(String namenodeToActivate)
returns the list of all namenode ids for the given configuration
|
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) |
protected void |
setErrOut(PrintStream errOut) |
protected void |
setOut(PrintStream out) |
getServiceAddr, printUsage, rungetConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfpublic DFSHAAdmin()
protected void setErrOut(PrintStream errOut)
protected void setOut(PrintStream out)
public void setConf(Configuration conf)
setConf 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 HAAdminprotected Collection<String> getTargetIds(String namenodeToActivate)
getTargetIds in class HAAdminCopyright © 2018 CERN. All Rights Reserved.