Class AbstractZooKeeperConfigurationProvider

java.lang.Object
org.apache.pulsar.io.flume.node.AbstractConfigurationProvider
org.apache.pulsar.io.flume.node.AbstractZooKeeperConfigurationProvider
All Implemented Interfaces:
ConfigurationProvider
Direct Known Subclasses:
PollingZooKeeperConfigurationProvider, StaticZooKeeperConfigurationProvider

public abstract class AbstractZooKeeperConfigurationProvider extends AbstractConfigurationProvider
ZooKeeper based configuration implementation provider. The Agent configuration can be uploaded in ZooKeeper under a base name, which defaults to /flume Currently the agent configuration is stored under the agent name node in ZooKeeper
   /flume
       /a1 [agent config file]
       /a2 [agent config file]
       /a3 [agent config file]
 
Configuration format is same as PropertiesFileConfigurationProvider Configuration properties agentName - Name of Agent for which configuration needs to be pulled zkConnString - Connection string to ZooKeeper Ensemble (host:port,host1:port1) basePath - Base Path where agent configuration needs to be stored. Defaults to /flume
  • Field Details

    • basePath

      protected final String basePath
    • zkConnString

      protected final String zkConnString
  • Constructor Details

    • AbstractZooKeeperConfigurationProvider

      protected AbstractZooKeeperConfigurationProvider(String agentName, String zkConnString, String basePath)
  • Method Details

    • createClient

      protected org.apache.curator.framework.CuratorFramework createClient()
    • configFromBytes

      protected org.apache.flume.conf.FlumeConfiguration configFromBytes(byte[] configData) throws IOException
      Throws:
      IOException