kafka整合flume
1.配置flume
- 添加
1 | vim flume-conf.properties |
1 | # 输入端,名称为r1 |
- 打开kafka-console-consumer在控制台进行消息的消费
1 | ./kafka-console-consumer.sh -–bootstrap-server localhost:9092 --topic mySecondTopic |
- 进入flume的bin目录启动flume
1 | ./flume-ng agent -c conf -f ../conf/flume-conf.properties -n agent -Dflume.root.logger=INFO,console |
- 打开一个新的窗口
1 | yum install telnet |
1 | hello flume kafka |
- 看一下console-consumer有没有收到消息吧