flume的搭建
1.在官网下载对应的flume版本,我这里下载的是1.8的
2.将下载好的安装包上传至机器上,并解压至指定的目录
3.进入解压好的目录下的conf目录下,修改配置文件。
指定你安装的jdk的安装目录,这里的安装目录是我自己jdk的安装目录。
至此flume安装完成,想要测试可以去官网按照对应的flume版本写配置文件,然后测试。
我这里是flume1.8版本
# Name the components on this agent a1.sources = r1 a1.sinks = k1 a1.channels = c1
# Describe/configure the source a1.sources.r1.type = netcat a1.sources.r1.bind = localhost a1.sources.r1.port = 44444
# Describe the sink a1.sinks.k1.type = logger
# Use a channel which buffers events in memory a1.channels.c1.type = memory a1.channels.c1.capacity = 1000 a1.channels.c1.transactionCapacity = 100
# Bind the source and sink to the channel a1.sources.r1.channels = c1 a1.sinks.k1.channel = c1 |