confluentinc / schema-registry

Confluent Schema Registry for Kafka
https://docs.confluent.io/current/schema-registry/docs/index.html
Other
2.23k stars 1.11k forks source link

Multiple schema registry url's not working #2634

Open david-4 opened 1 year ago

david-4 commented 1 year ago

Hello team,

I'm facing a problem with the kafka-schema-registry-maven-plugin configuration in pom.xml. I want to use the execution "set-compatibility" with three schema registry url's. My configuration of schema registry url's is:

<schemaRegistryUrls>
    <param>https://url1/</param>
    <param>https://url2/</param>
    <param>https://url3/</param>
  </schemaRegistryUrls>

When i execute this, the plugin only sets compatibility on one of this three stages. It's pretty random.

I'm using version 7.4.0.

Thank you for your help.

OneCricketeer commented 1 year ago

Last I checked, the plugin is meant to be used with one schema registry address (i.e. a cluster of registries), not distinct installations.

If you want to hit distinct servers, using separate Maven Profiles with a property for each url may work.

starwarsfan commented 6 months ago

Any news on this topic? Facing the same problem at the moment. Especially because the parameter is named schemaRegistryUrl**s**, which implies the feature to use multiple param entries. To use different profiles is not an option as we need to create a single jar with the generated content for all given schemaRegistryUrls.