最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

apache kafka - Setting Schema Registry Proxy URL and Port - Stack Overflow

programmeradmin1浏览0评论

We want to configure a Proxy only for the Schema Registry. That means the Proxy muss not be used by the Broker connection.

I'm trying to follow the configuration options for the Schema Registry added in this pull request: , a few years ago, following this stackoverflow link: How can I tell KafkaAvroSerializer that the connection to the Schema Registry must be through a proxy?

I'm also following the documentation for Schema Registry properties given here: .html

I added the configuration in the Kafka Configuration Class: props.put("proxy.url", "xxxx") where xxxx is the URL for the proxy. Something similar for the port.

After, of course, come the producer factory configuration and the Kafka Template.

However, the configurations are not taken when the Schema Regestry is contacted. The connection goes as the proxy doesn't exist.

Can somebody help?

We want to configure a Proxy only for the Schema Registry. That means the Proxy muss not be used by the Broker connection.

I'm trying to follow the configuration options for the Schema Registry added in this pull request: https://github/confluentinc/schema-registry/pull/1144, a few years ago, following this stackoverflow link: How can I tell KafkaAvroSerializer that the connection to the Schema Registry must be through a proxy?

I'm also following the documentation for Schema Registry properties given here: https://docs.confluent.io/platform/current/schema-registry/installation/config.html

I added the configuration in the Kafka Configuration Class: props.put("proxy.url", "xxxx") where xxxx is the URL for the proxy. Something similar for the port.

After, of course, come the producer factory configuration and the Kafka Template.

However, the configurations are not taken when the Schema Regestry is contacted. The connection goes as the proxy doesn't exist.

Can somebody help?

Share Improve this question edited Nov 30, 2024 at 4:16 OneCricketeer 192k20 gold badges143 silver badges268 bronze badges asked Nov 19, 2024 at 10:46 Nestor TorresNestor Torres 12 bronze badges 1
  • I found the solution. I was using proxy.url instead of proxy.host, that is the right configuration property – Nestor Torres Commented Dec 2, 2024 at 10:40
Add a comment  | 

1 Answer 1

Reset to default 0

The problem was using the wrong property. The right property is proxy.host instead of proxy.url.

发布评论

评论列表(0)

  1. 暂无评论