schema-registry icon indicating copy to clipboard operation
schema-registry copied to clipboard

Multiple schema registry url's not working

Open david-4 opened this issue 1 year ago • 2 comments

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.

david-4 avatar May 10 '23 06:05 david-4

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.

OneCricketeer avatar Jun 14 '23 06:06 OneCricketeer

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.

starwarsfan avatar Apr 22 '24 07:04 starwarsfan