我正在尝试将一些指标从http客户端发送到kafka,从而探索kafka-rest。我的客户机本身使用并需要端口8082。我试图将kafka-rest服务的默认端口更改为8082以外的其他端口,但它似乎不接受我对confluent-1.0/etc/kafka-rest/kafka-rest.properties所做的任何更改
主要是我不确定我是否知道在这个属性文件中设置正确的键。我尝试简单地指定port=8085
和/或
listeners=8085
但是看看代码:https://github.com/confluentinc/kafka-rest/blob/master/src/main/java/io/confluent/kafkarest/KafkaRestConfig.java似乎没有办法覆盖这个端口。这是正确的吗?感谢在这方面的任何帮助。
发布于 2017-04-12 23:33:39
您必须在kafka-rest/kafka-rest.properties中添加port=8085 (或您想要的端口
发布于 2019-04-03 22:23:18
在/etc/kafka-rest/kafka-rest.properties中添加listeners=“http://0.0.0.0:8085“。port属性已弃用。
文档- https://docs.confluent.io/5.2.0/kafka-rest/docs/config.html
https://stackoverflow.com/questions/38924242
复制相似问题