Search code examples
flumeflume-ng

Flume errors : Channel hdfschannel not in active set


I get below error message when i start my flume agent:

    17/10/15 14:40:47 WARN conf.FlumeConfiguration: Could not configure sink  hdfssink due to: Channel hdfschannel not in active set.
org.apache.flume.conf.ConfigurationException: Channel hdfschannel not in active set.

it doesn't write any files to hdfs sink. below is my flume configuration file:

    fmp.sources = logsource
    fmp.sinks = loggersink hdfssink
    fmp.channels = loggerchannel hadfschannel

    fmp.sources.logsource.type=exec
    fmp.sources.logsource.command = tail -F /opt/gen_logs/logs/access.log

    fmp.sinks.loggersink.type=logger
    fmp.sinks.hdfssink.type=hdfs
    fmp.sinks.hdfssink.hdfs.path=hdfs://quickstart.cloudera:8020/user/cloudera/flume

    fmp.channels.loggerchannel.type=memory
    fmp.channels.loggerchannel.capacity=1000
    fmp.channels.loggerchannel.transactioncapacity=100

    fmp.channels.hdfschannel.type=file
    fmp.channels.hdfschannel.capacity=1000
    fmp.channels.hdfschannel.transactioncapacity=100

    fmp.sources.logsource.channels = hdfschannel loggerchannel
    fmp.sinks.loggersink.channel = loggerchannel
    fmp.sinks.hdfssink.channel = hdfschannel

Solution

  • You have declared a channel called hadfschannel, and in the rest of your configuration you are referring to a channel named hdfschannel.