Class RouterFedBalance
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hdfs.rbfbalance.RouterFedBalance
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class RouterFedBalance
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Balance data in router-based federation cluster. From src sub-namespace to
dst sub-namespace with distcp.
1. Move data from the source path to the destination path with distcp.
2. Update the mount entry.
3. Delete the source path to trash.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
RouterFedBalance
public RouterFedBalance()
-
-
Method Details
-
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
main
Main function of the RouterFedBalance program. Parses the input arguments and invokes the RouterFedBalance::run() method, via the ToolRunner.- Parameters:
argv- Command-line arguments sent to RouterFedBalance.
-