You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by Liting Hu <fo...@gmail.com> on 2013/01/02 21:50:23 UTC

how to import customized conf file

Dear everyone,
Happy new year!
I come into a problem with flume-ng. I want to use the customized key-value
pair in the flume instance.
for example, in the flume-ng's configuration file agent1.conf.
I add

agent1.customizedkey=customizedvalue.

I started with changing flume-ng-configuration package, the
FlumeConfiguration.java.
However, I donot know the way that I can get my value, or more
specificially, I do not know where I should call it.

In flume-0.9.5, there is a file called LogicalNode.java, in which I can use
FlumeConfiguration.get().getCustomizedKey(),
but in flume-ng, there is no entry like this.

Anyone who gets some clues? Thanks a lot in advance.

Many many thanks!

Liting