Kafka Java生产者和使用者,其ACL启用了主题 [英] Kafka java producer and consumer with ACL enabled with topic

查看:60
本文介绍了Kafka Java生产者和使用者,其ACL启用了主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对kafka ACL配置感到困惑,在该配置中我们为生产者和消费者配置了授权. 有各种示例显示使用命令行生成/使用消息. 我们是否需要任何额外的配置来使用JAVA api来/从安全的kafka主题生成/使用消息.

I'm bit confused with kafka ACL configuration, where we configure authorization for producer and consumer. There are various examples showing producing/consuming message using command line. Do we need any extra configuration to produce/consume messages using JAVA api to/from secured kafka topic.

推荐答案

如果您想了解安全的Kafka服务器的配置详细信息,请

If you would like to learn about the details of configuration for a secured Kafka server, Confluent docs has an excellent description. You can notice in the docs that you set certain properties through a file client.properties, which shall be used as a config file for the console producer and consumer. Similarly in the case of Java consumer/producer, you can set these properties as described in the examples here.

这篇关于Kafka Java生产者和使用者,其ACL启用了主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆