flume-ng - EmbeddedAgent org.apache.flume.sink.http.HttpSink 的组件类型不在 [AVRO] 的允许类型中
问题描述
当我使用 EmbeddedAgent 并设置 [sink.type=org.apache.flume.sink.http.HttpSink] 时,抛出异常:org.apache.flume.FlumeException: org.apache.flume.sink.http.HttpSink 的组件类型为不在 [AVRO]
的允许类型中 代码如下所示
/**
* Avro sink which can send events to a downstream avro source. This is the
* only supported sink for Embedded Agents.
*/
public static final String SINK_TYPE_AVRO = SinkType.AVRO.name();
为什么不能使用其他水槽
解决方案
推荐阅读
- php - 如何在 WooCommerce 中获取“添加到购物车”以使用替代价格?
- gcc - 没有多重包含保护就没有编译错误
- r - 我可以根据 r 中的其他两个条件创建一个变量的多个类别吗?
- linux-device-driver - 为 I2C 设备加载平台驱动程序时,该设备是否需要存在?
- lua - temp:7: 尝试索引全局“mon”(一个 nil 值)
- linux - 如何将一个函数连接到不同的函数上?
- haskell - Haskell 中惰性和并行性如何共存?
- python - 根据帖子是否喜欢添加不同的图像
- python - 如何禁用仅在将 .py 转换为 .exe 后才显示的 python 警告?
- javascript - CSS中设置的圆半径,如何通过JS获取值?