Try the following and if you have an error, please post the entire message including the stacktrace.
agent1.sources.avro-source1.interceptors = a b agent1.sources.avro-source1.interceptors.a.type = HOST agent1.sources.avro-source1.interceptors.a.hostHeader = hostname agent1.sources.avro-source1.interceptors.a.preserveExisting = true agent1.sources.avro-source1.interceptors.a.useIP = false agent1.sources.avro-source1.interceptors.b.type = TIMESTAMP agent1.sources.avro-source1.interceptors.b.preserveExisting = false On Wed, Sep 12, 2012 at 10:17 AM, Prajakta Bavikar <[email protected]> wrote: > I am new user of flume. > > Please let me know this > > I have included following lines, but getting error : not able to initialize > HostInterceptor$Builder > > > > > > agent1.sources.avro-source1.interceptors =a b > > agent1.sources.avro-source1.interceptors.a.type = > org.apache.flume.interceptor.HostInterceptor$Builder > > agent1.sources.avro-source1.interceptors.a.hostHeader = hostname > > agent1.sources.avro-source1.interceptors.a.preserveExisting = true > > agent1.sources.avro-source1.interceptors.a.useIP = false > > agent1.sources.avro-source1.interceptors.b.type = > org.apache.flume.interceptor.TimestampInterceptor > > agent1.sources.avro-source1.interceptors.b.preserveExisting = false > > > > > > -Prajakta > > > > DISCLAIMER ========== This e-mail may contain privileged and confidential > information which is the property of Persistent Systems Ltd. It is intended > only for the use of the individual or entity to which it is addressed. If > you are not the intended recipient, you are not authorized to read, retain, > copy, print, distribute or use this message. If you have received this > communication in error, please notify the sender and delete all copies of > this message. Persistent Systems Ltd. does not accept any liability for > virus infected mails. -- Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/
