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
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] argv)
    Main function of the RouterFedBalance program.
    int
    run(String[] args)
     

    Methods inherited from class org.apache.hadoop.conf.Configured

    getConf, setConf

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public int run(String[] args) throws Exception
      Specified by:
      run in interface org.apache.hadoop.util.Tool
      Throws:
      Exception
    • main

      public static void main(String[] argv)
      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.