Skip to main content

Kafka消息生产

须知

插件使用librdkafka,注意在非windows系统中需按系统安装c库

On Mac OSX, install librdkafka with homebrew:

$ brew install librdkafka

On Debian and Ubuntu, install librdkafka from the Confluent APT repositories, see instructions here and then install librdkafka:

$ apt install librdkafka-dev

On RedHat, CentOS, Fedora, install librdkafka from the Confluent YUM repositories, instructions here and then install librdkafka:

$ yum install librdkafka-devel

For other platforms, follow the source building instructions below.

一、设备扩展属性​

属性说明默认值/备注
服务地址服务地址127.0.0.1:9092
设备主题设备主题
变量主题变量主题
客户端ID客户端IDtest-consumer
线程循环间隔上传线程的循环间隔,一般不需要更改(ms)1000
发布超时时间连接发布时的超时时间1000
缓存最大条数离线缓存时的最大条数,这里指的是发布不成功时的缓存次数2000
列表分割大小发布的实体列表按大小分割1000

二、变量配置​

启用​

启用变量后才能进行上传