16 Aralık 2022 Cuma

kafka-schema-registry plugin - Avro Schema'larını Schema Registry Sunucusuna Kaydeder

Örnek
Şöyle yaparız
<plugin>
  <groupId>io.confluent</groupId>
  <artifactId>kafka-schema-registry-maven-plugin</artifactId>
  <version>${confluent.version}</version>
  <configuration>
     <schemaRegistryUrls>
        <param>http://localhost:8081</param>
     </schemaRegistryUrls>
     <subjects>
        <send-payment-value>${project.basedir}/src/main/resources/avro/send_payment.avsc</send-payment-value>
        <payment-sent-value>${project.basedir}/src/main/resources/avro/payment_sent.avsc</payment-sent-value>
     </subjects>
  </configuration>
  <goals>
     <goal>register</goal>
  </goals>
</plugin>
acro dizininde Şöyle yaparız
mvn schema-registry:register


Hiç yorum yok:

Yorum Gönder

Local Snapshot Kullanmak

Örnek Şöyle yaparız <repository> <id>snapshot-repository</id> <name>Maven2 Snapshot Repository</name> &l...