场景:
使用flume的http source 获取数据,hdfs sink将数据输入到hdfs ,下面是进行的配置和说明
Sink-hdfs
查看用户文档
http://flume.apache.org/FlumeUserGuide.html#netcat-source
修改配置文件
1. 官方文档的例子
2. 修改配置
root@master:/usr/local/flume/conf# cp flume-conf.properties hdfs-s.conf
root@master:/usr/local/flume/conf# vim hdfs-s.conf
# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1