A sink can only read from one channel. So
agent_foo.sinks.hdfsSink-1.channels = memoryChannel-1
should be:
agent_foo.sinks.hdfsSink-1.channel = memoryChannel-1
On Thu, 2012-07-26 at 11:47 +0800, 荆棘鸟 wrote:
> hello,people:
> This is my configuration.
> agent_foo.sources = tailsource-1
> agent_foo.channels = memoryChannel-1
> agent_foo.sinks = hdfsSink-1
> agent_foo.sources.tailsource-1.type = exec
> agent_foo.sources.tailsource-1.command = tail
> -F /home/hadoop/test/hello.txt
> agent_foo.sources.tailsource-1.channels = memoryChannel-1
> agent_foo.channels.memoryChannel-1.type = memory
> agent_foo.channels.memoryChannel-1.capacity = 1000
> agent_foo.sinks.hdfsSink-1.type = hdfs
> agent_foo.sinks.hdfsSink-1.channels = memoryChannel-1
> agent_foo.sinks.hdfsSink-1.hdfs.path =
> hdfs://CMN-NJ-2-579:9000/user/hadoop/flume
> But it has a wrong that is "2012-07-26 11:37:12,719 WARN
> conf.FlumeConfiguration: Configuration empty for: hdfsSink-1.Removed.
> ".I hope to get you help.Please give me a way for solve the proble.
> My name
> Yanzhi.liu
>
>
|