Member since
12-11-2015
4
Posts
2
Kudos Received
0
Solutions
07-31-2017
04:55 PM
It appears to be possible to create the same avro schema in the registry. This feels like a bug to me. Both were create using the Schema Registry UI, not through the REST interfaces. avro1.txtavro2.txt HDF 3.0.0.0, Registry 0.3.0
... View more
Labels:
- Labels:
-
Apache Kafka
-
Schema Registry
05-20-2016
03:58 PM
If you are using Maven to build your project there is a plugin that you can use to auto generate your schema. https://avro.apache.org/docs/1.8.0/gettingstartedjava.html <plugin>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<version>${avro.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>idl-protocol</goal>
<goal>schema</goal>
<goal>protocol</goal>
</goals>
<configuration>
<sourceDirectory>${project.basedir}/src/main/resources/avro/idl</sourceDirectory>
<outputDirectory>${project.basedir}/src/main/java/</outputDirectory>
<stringType>String</stringType>
</configuration>
</execution>
</executions>
... View more