Kafka java producer and consumer with ACL enabled with topic

♀尐吖头ヾ 提交于 2019-12-25 09:06:39

问题


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.


回答1:


@Apollo : This question is quite vague.. If you want to learn ACL/ SSL it will take some time.. the below link might help you to get started. https://github.com/Symantec/kafka-security-0.9




回答2:


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.



来源:https://stackoverflow.com/questions/37835199/kafka-java-producer-and-consumer-with-acl-enabled-with-topic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!