public abstract class AbstractZooKeeperConfigurationProvider extends AbstractConfigurationProvider
/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
Modifier and Type | Field and Description |
---|---|
protected String |
basePath |
protected String |
zkConnString |
Modifier | Constructor and Description |
---|---|
protected |
AbstractZooKeeperConfigurationProvider(String agentName,
String zkConnString,
String basePath) |
Modifier and Type | Method and Description |
---|---|
protected FlumeConfiguration |
configFromBytes(byte[] configData) |
protected org.apache.curator.framework.CuratorFramework |
createClient() |
getAgentName, getConfiguration, getFlumeConfiguration, toMap
protected final String basePath
protected final String zkConnString
protected org.apache.curator.framework.CuratorFramework createClient()
protected FlumeConfiguration configFromBytes(byte[] configData) throws IOException
IOException
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.