Class BootstrapStandby
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
@Private
public class BootstrapStandby
extends Object
implements org.apache.hadoop.util.Tool, org.apache.hadoop.conf.Configurable
Tool which allows the standby node's storage directories to be bootstrapped
by copying the latest namespace snapshot from the active namenode. This is
used when first configuring an HA cluster.
-
Constructor Details
-
BootstrapStandby
public BootstrapStandby()
-
-
Method Details
-
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
getProxyNamespaceInfo
@VisibleForTesting public NamespaceInfo getProxyNamespaceInfo(NamenodeProtocol proxy) throws IOException - Throws:
IOException
-
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf) - Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-
getConf
public org.apache.hadoop.conf.Configuration getConf()- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-
run
- Throws:
IOException
-