Class HCFSMountTableConfigLoader

java.lang.Object
org.apache.hadoop.fs.viewfs.HCFSMountTableConfigLoader
All Implemented Interfaces:
MountTableConfigLoader

public class HCFSMountTableConfigLoader extends Object implements MountTableConfigLoader
An implementation for Apache Hadoop compatible file system based mount-table file loading.
  • Constructor Details

    • HCFSMountTableConfigLoader

      public HCFSMountTableConfigLoader()
  • Method Details

    • load

      public void load(String mountTableConfigPath, Configuration conf) throws IOException
      Loads the mount-table configuration from hadoop compatible file system and add the configuration items to given configuration. Mount-table configuration format should be suffixed with version number. Format: mount-table.<versionNumber>.xml Example: mount-table.1.xml When user wants to update mount-table, the expectation is to upload new mount-table configuration file with monotonically increasing integer as version number. This API loads the highest version number file. We can also configure single file path directly.
      Specified by:
      load in interface MountTableConfigLoader
      Parameters:
      mountTableConfigPath - : A directory path where mount-table files stored or a mount-table file path. We recommend to configure directory with the mount-table version files.
      conf - : to add the mount table as resource.
      Throws:
      IOException - raised on errors performing I/O.