Flume学习7_Flume配置文件内容详解

CentOS6.5下,Flume安装及配置详细教程

(链接:http://blog.csdn.net/wang_zhenwei/article/details/48438105)

中的配置文件进行解释:


a1.sources = r1
a1.sinks = k1
a1.channels = c1
该配置文件中 配置了一个代理a1 
 在代理agent中配置了一个source(源)一个sink(接收器)和一个channel(通道),分别为:r1,k1,c1


# Describe/configure the source
a1.sources.r1.type = avro
a1.sources.r1.channels = c1
a1.sources.r1.bind = 0.0.0.0
a1.sources.r1.port = 4141
r1的类型定义为avro,对应该类型参数为bind和port 分别为0.0.0.0和4141
  

# Describe the sink
a1.sinks.k1.type = logger
k1的类型定义为logger,直接输出到日志文件中


# Use a channel which buffers events in memory
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100
cl的类型定义为内存方式,设置其参数capactiy和transactionCapacity分别为1000和100
  

# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1
指定r1和k1的channel为c1

你可能感兴趣的:(Flume,原创)