Property NameDefaultDescription
channels–
type–需要配置为Thrift
bind–需要监听的主机名或ip地址
port–需要监听的端口
threads–工作的最大线程数
selector.type
selector.*
interceptors–空格分割的拦截器列表
interceptors.*
sslfalse设置为true开启ssl. 同时必须明确 “keystore”和“keystore- password”.
keystore–This is the path to a Java keystore file. Required for SSL.
keystore-password–The password for the Java keystore. Required for SSL.
keystore-typeJKSThe type of the Java keystore. This can be “JKS” or “PKCS12”.
exclude-protocolsSSLv3Space-separated list of SSL/TLS protocols to exclude. SSLv3 will always be excluded in addition to the protocols specified.
kerberosfalseSet to true to enable kerberos authentication. In kerberos mode, agent-principal and agent-keytab are required for successful authentication. The Thrift source in secure mode, will accept connections only from Thrift clients that have kerberos enabled and are successfully authenticated to the kerberos KDC.
agent-principal–The kerberos principal used by the Thrift Source to authenticate to the kerberos KDC.
agent-keytab—-The keytab location used by the Thrift Source in combination with the agent-principal to authenticate to the kerberos KDC.
Property NameDefaultDescription
channels–
type–需要设置为jms
initialContextFactory–e.g: org.apache.activemq.jndi.ActiveMQInitialContextFactory
connectionFactory–The JNDI name the connection factory shoulld appear as
providerURL–The JMS provider URL
destinationName–Destination name
destinationType–Destination type (queue or topic)
messageSelector–Message selector to use when creating the consumer
userName–Username for the destination/provider
passwordFile–File containing the password for the destination/provider
batchSize100Number of messages to consume in one batch
converter.typeDEFAULTClass to use to convert messages to flume events. See below.
converter.*–Converter properties.
converter.charsetUTF-8Default converter only. Charset to use when converting JMS TextMessages to byte arrays.
Property NameDefaultDescription
channels–
type–需要设置为spooldir.
spoolDir–读取文件的目录
fileSuffix.COMPLETED当文件读取完毕后加的后缀名
deletePolicynever是否删除文件,never或者immediate
fileHeaderfalse文件是否存储到一个绝对路径
fileHeaderKeyfile绝对路径的值
basenameHeaderfalseWhether to add a header storing the basename of the file.
basenameHeaderKeybasenameHeader Key to use when appending basename of file to event header.
ignorePattern^$ 使用正则表达式表示哪些文件被跳过
trackerDir.flumespool存储进程matadata文件的路径,如果不是绝对路径的话将被解释为spooldir的相对路径
consumeOrderoldest/youngest/random,文件被处理的先后,使用文件的最后修改时间来比较,如果时间一致,文件小的先被处理
maxBackoff4000当缓冲池满了后多少毫秒后重新尝试发送
batchSize100每次传送到channel的记录数
inputCharsetUTF-8文件被当做文本的编码.
decodeErrorPolicyFAIL当文件无法解码时怎么做, FAIL: Throw an exception and fail to parse the file. REPLACE: Replace the unparseable character with the “replacement character” char, typically Unicode U+FFFD. IGNORE: Drop the unparseable character sequence.
deserializerLINE指定文件被怎么样指定为事件, 默认将每一行当做一个事件.自己实现的类必须implement EventDeserializer.Builder.
deserializer.* Varies per event deserializer.
bufferMaxLines–(Obselete) 这个配置目前被忽略
bufferMaxLineLength5000(Deprecated) 多少字节的行可以被提交,不赞成使用, Use deserializer.maxLineLength instead.
selector.typereplicatingreplicating or multiplexing
selector.* Depends on the selector.type value
interceptors–Space-separated list of interceptors
interceptors.*