Interface SourceFSConfigurationProvider

All Known Implementing Classes:
DefaultSourceFSConfigurationProvider

@LimitedPrivate("Replication") public interface SourceFSConfigurationProvider
Interface that defines how a region server in peer cluster will get source cluster file system configurations. User can configure their custom implementation implementing this interface by setting the value of their custom implementation's fully qualified class name to hbase.replication.source.fs.conf.provider property in RegionServer configuration. Default is DefaultSourceFSConfigurationProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.conf.Configuration
    getConf(org.apache.hadoop.conf.Configuration sinkConf, String replicationClusterId)
    Returns the source cluster file system configuration for the given source cluster replication ID.
  • Method Details

    • getConf

      org.apache.hadoop.conf.Configuration getConf(org.apache.hadoop.conf.Configuration sinkConf, String replicationClusterId) throws IOException
      Returns the source cluster file system configuration for the given source cluster replication ID.
      Parameters:
      sinkConf - sink cluster configuration
      replicationClusterId - unique ID which identifies the source cluster
      Returns:
      source cluster file system configuration
      Throws:
      IOException - for invalid directory or for a bad disk.