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, run
getConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf
protected void setErrOut(PrintStream errOut)
protected void setOut(PrintStream out)
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
setConf
in class HAAdmin
public static Configuration addSecurityConfiguration(Configuration conf)
conf
- the original configprotected HAServiceTarget resolveTarget(String nnId)
resolveTarget
in class HAAdmin
protected String getUsageString()
getUsageString
in class HAAdmin
Copyright © 2013 Apache Software Foundation. All rights reserved.