Package org.apache.hadoop.fs.viewfs
Class HCFSMountTableConfigLoader
java.lang.Object
org.apache.hadoop.fs.viewfs.HCFSMountTableConfigLoader
- All Implemented Interfaces:
MountTableConfigLoader
An implementation for Apache Hadoop compatible file system based mount-table
file loading.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidload(String mountTableConfigPath, Configuration conf) Loads the mount-table configuration from hadoop compatible file system and add the configuration items to given configuration.
-
Constructor Details
-
HCFSMountTableConfigLoader
public HCFSMountTableConfigLoader()
-
-
Method Details
-
load
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:
loadin interfaceMountTableConfigLoader- 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.
-