KafkaProducer
提示
通过自定义脚本,可快速适配业务模型
须知
插件使用librdkafka,注意按需安装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.
一、说明
KafkaProducer适配Kafka协议,主动发布内容到服务端,可以定时/变化发布数据
通道只支持 Other
二、插件属性配置项

属性 | 说明 | 备注 |
---|---|---|
服务地址 | 服务地址 | 127.0.0.1:9092 |
发布超时时间 | 发布超时时间 | 5000 |
用户名 | 用户名 | |
密码 | 密码 | |
SecurityProtocol | SecurityProtocol | |
SaslMechanism | SaslMechanism | |