Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Flume >> mail # user >> Can I use variables in config file?

Copy link to this message
Can I use variables in config file?

I'm wondering if I can use some variables in the config file so as to
specify sinks' HDFS directory dynamically according to the hostname of
deployed server. For example , I want to set the
agent.sinks.***.hdfs.path=hdfs://../flume/${hostname}/..., and the
${hostname} will be initialized as the hostname of that server while
starting up flume.
Zhiwen Sun 2013-03-22, 02:22
Felix.徐 2013-03-22, 02:30