You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@kylin.apache.org by 王赉熙 <wl...@163.com> on 2021/11/26 09:55:28 UTC

kylin 对接开启安全的kafka

你好,我在使用kylin 3.1.2对接开启安全的kafka的时候遇到了一些问题,详细问题信息如下:
开启安全的kafka 生产者使用命令:
./kafka-console-producer.sh --broker-list localhost:9092 --producer.config /etc/kafka1/conf/security-client.properties --topic topicname
kylin kafka生产者使用命令:(源码好像没有加载配置文件的代码)
./bin/kylin.sh org.apache.kylin.source.kafka.util.KafkaSampleProducer --topic kylin_streaming_topic --broker localhost:9092


开启安全的kafka在生产和消费数据的时候需要指定对应的producer.config和consumer.config,这些相关配置文件在哪里配置?或者是我使用kylin 3.1.2对接开启安全的kafka的时候操作姿势有问题吗?正确的操作应该是怎样的?


Re: kylin 对接开启安全的kafka

Posted by Yaqian Zhang <Ya...@126.com>.
Hi:

The KafkaSampleProducer provided by kylin is only provided to users for quick trial. In actual use, the producer is controlled by users themselves. Kylin does not need to read producer.config.

When kylin consumes data, it reads the configuration in file $KYLIN_HOME/conf/kylin-kafka-consumer.xml. Whether it is security related configuration or other configurations, you can add them to this file.


> 在 2021年11月26日,下午5:55,王赉熙 <wl...@163.com> 写道:
> 
> producer.config