Channel selectors
As we discussed in Chapter 1, Overview and Architecture, a source can write to one or more channels. This is why the property is plural (channels
instead of channel
). There are two ways multiple channels can be handled. The event can be written to all the channels or to just one channel, based on some Flume header value. The internal mechanism for this in Flume is called a channel selector.
The selector for any channel can be specified using the selector.type
property. All selector-specific properties begin with the usual Source
prefix: the agent name, keyword sources, and source name:
agent.sources.s1.selector.type=replicating
Replicating
If you do not specify a selector for a source, replicating
is the default. The replicating ...
Get Apache Flume: Distributed Log Collection for Hadoop - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.