flume-invalid for agent ‘a1‘. It will be removed.
发布日期:2021-05-07 11:59:28 浏览次数:21 分类:原创文章

本文共 674 字,大约阅读时间需要 2 分钟。

一、报错信息

invalid for agent ‘a1’. It will be removed.
在这里插入图片描述

二、解决方法

# example.conf: A single-node Flume configuration# Name the components on this agenta1.sources = r1a1.sinks = k1a1.channels = c1# Describe/configure the sourcea1.sources.r1.type = netcata1.sources.r1.bind = ###.###.###.###a1.sources.r1.port = 44444# Describe the sinka1.sinks.k1.type = avroa1.sinks.k1.bind = ###.###.###.###a1.sinks.k1.port = 33333# Use a channel which buffers events in memory# Bind the source and sink to the channela1.sources.r1.channels = c1a1.sinks.k1.channel = c1~

原因:因为没配置channels,所以报错。加上就可以了.

a1.channels.c1.type = memorya1.channels.c1.capacity = 1000a1.channels.c1.transactionCapacity = 100
上一篇:java-随机生成一个时间段内的时间
下一篇:IDEA中使用Tomcat运行Maven项目输出中文乱码

发表评论

最新留言

逛到本站,mark一下
[***.202.152.39]2025年04月18日 13时02分44秒