--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
error: `package' expected but `public' found.
[INFO] public class eng_match extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
[INFO] ^
[ERROR] /Users/raosa/gitprojects/examples/kafka-streams/target/generated-sources/eng_match.java:3619: error: identifier expected but eof found.
[INFO] }
[INFO] ^
[ERROR] two errors foundSagar,That plugin was just merged recently, so it hasn't been released yet. But it would be a good way to accomplish this.With respect to Kafka versions, http://www.confluent.io/blog/announcing-apache-kafka-0.10-and-confluent-platform-3.0 explains all the new stuff in 0.10.0.0. For clients APIs specifically, Kafka Streams is entirely new, and "traditional" clients haven't changed much API-wise, but there are substantial improvements (and some additional flags) for the new consumer. You'll be fine using 0.9, but if at all possible we'd highly recommend using 0.10.-Ewen
On Thu, Aug 4, 2016 at 9:12 AM, Sagar Rao <sagarme...@gmail.com> wrote:
Hi,1) Is there a way using Schema-registry to get the avro schema files? I know we have this REST apiGET subjects/topic-value/versions/version-number but this returns a json which would need parsing. I was looking for something whereby I can hit and download all the schemas as avsc files which is what the SpecificRecord uses. I found this:which seems to have a mojo to download the schema files as avsc file but I wasn't able to download the plugin from maven. So, if it exists, what would be the correct maven co-ordinates? OR any other way can be suggested?2) Another generic question is regarding kafka version. In terms of APIs how much of a difference is there if I use Kafka 0.9 version v/s the 0.10 ?Thanks!Sagar.
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
Thanks Ewen.I went ahead and built that project locally and was able to get the avsc file downloaded from Schema registry.Just as a rough estimate, by when can this be available?
Another thing I wanted to ask is that is there a way to set namespaces from the kafka-connect side? Right now no namespaces are set and when those avsc files are built using maven-avro-plugin, it throws errors like:error: `package' expected but `public' found.
[INFO] public class eng_match extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
[INFO] ^
[ERROR] /Users/raosa/gitprojects/examples/kafka-streams/target/generated-sources/eng_match.java:3619: error: identifier expected but eof found.
[INFO] }
[INFO] ^
[ERROR] two errors foundI manually added the namespace and it started to compile.
Thanks!Sagar.
On Thursday, 4 August 2016 22:59:28 UTC+5:30, Ewen Cheslack-Postava wrote:
Sagar,That plugin was just merged recently, so it hasn't been released yet. But it would be a good way to accomplish this.With respect to Kafka versions, http://www.confluent.io/blog/announcing-apache-kafka-0.10-and-confluent-platform-3.0 explains all the new stuff in 0.10.0.0. For clients APIs specifically, Kafka Streams is entirely new, and "traditional" clients haven't changed much API-wise, but there are substantial improvements (and some additional flags) for the new consumer. You'll be fine using 0.9, but if at all possible we'd highly recommend using 0.10.-Ewen
On Thu, Aug 4, 2016 at 9:12 AM, Sagar Rao <sagarme...@gmail.com> wrote:
Hi,1) Is there a way using Schema-registry to get the avro schema files? I know we have this REST apiGET subjects/topic-value/versions/version-number but this returns a json which would need parsing. I was looking for something whereby I can hit and download all the schemas as avsc files which is what the SpecificRecord uses. I found this:which seems to have a mojo to download the schema files as avsc file but I wasn't able to download the plugin from maven. So, if it exists, what would be the correct maven co-ordinates? OR any other way can be suggested?2) Another generic question is regarding kafka version. In terms of APIs how much of a difference is there if I use Kafka 0.9 version v/s the 0.10 ?Thanks!Sagar.
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/2def3be2-1ea2-4063-a9eb-f56764887c41%40googlegroups.com.
Are you asking how to use a Connect schema to generate data and you want the Avro schema to have a namespace? Connect schemas intentionally only have a name, but if you use a dotted name (e.g. io.confluent.schemas.MySchema) the Avro converter will split on the last '.' to determine the Avro namespace and name, i.e. you'll get namespace=io.confluent.schemas and name=MySchema.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/2def3be2-1ea2-4063-a9eb-f56764887c41%40googlegroups.com.
--Thanks,
Ewen
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/2def3be2-1ea2-4063-a9eb-f56764887c41%40googlegroups.com.
----Thanks,
Ewen
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/dbdd8953-2a0c-495f-8d56-91200516ed8f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/2def3be2-1ea2-4063-a9eb-f56764887c41%40googlegroups.com.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/dbdd8953-2a0c-495f-8d56-91200516ed8f%40googlegroups.com.
--Thanks,
Ewen
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/2def3be2-1ea2-4063-a9eb-f56764887c41%40googlegroups.com.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/dbdd8953-2a0c-495f-8d56-91200516ed8f%40googlegroups.com.
----Thanks,
Ewen
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/aa1f0c64-f4dc-4cc3-8e8c-6992c70c097b%40googlegroups.com.
<repositories>
<repository>
<id>confluent</id>
<url>http://packages.confluent.io/maven/</url>
</repository>
</repositories>
<plugin>
<groupId>io.confluent</groupId>
<artifactId>kafka-schema-registry-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>download</goal>
</goals>
<configuration>
<schemaRegistryUrls>
<param>http://localhost:8081</param>
</schemaRegistryUrls>
<outputDirectory>${project.basedir}/src/schema/</outputDirectory>
<subjectPatterns>^test</subjectPatterns>
</configuration>
</execution>
</executions>
</plugin>
<dependency>
<groupId>io.confluent</groupId>
<artifactId>kafka-schema-registry-maven-plugin</artifactId>
<version>3.3.0</version>
</dependency>
Sagar,That plugin was just merged recently, so it hasn't been released yet. But it would be a good way to accomplish this.With respect to Kafka versions, http://www.confluent.io/blog/announcing-apache-kafka-0.10-and-confluent-platform-3.0 explains all the new stuff in 0.10.0.0. For clients APIs specifically, Kafka Streams is entirely new, and "traditional" clients haven't changed much API-wise, but there are substantial improvements (and some additional flags) for the new consumer. You'll be fine using 0.9, but if at all possible we'd highly recommend using 0.10.-Ewen
On Thu, Aug 4, 2016 at 9:12 AM, Sagar Rao <sagarme...@gmail.com> wrote:
Hi,1) Is there a way using Schema-registry to get the avro schema files? I know we have this REST apiGET subjects/topic-value/versions/version-number but this returns a json which would need parsing. I was looking for something whereby I can hit and download all the schemas as avsc files which is what the SpecificRecord uses. I found this:which seems to have a mojo to download the schema files as avsc file but I wasn't able to download the plugin from maven. So, if it exists, what would be the correct maven co-ordinates? OR any other way can be suggested?2) Another generic question is regarding kafka version. In terms of APIs how much of a difference is there if I use Kafka 0.9 version v/s the 0.10 ?Thanks!Sagar.
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/336c472d-fecb-4720-b987-9c303eee7416%40googlegroups.com.
<plugin> <groupId>io.confluent</groupId> <artifactId>kafka-schema-registry-maven
-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<schemaRegistryUrls>
<param>http://192.168.99.100:8081</param>
</schemaRegistryUrls>
<outputDirectory>src/main/avro</outputDirectory>
<subjectPatterns>
<param>^TestSubject000-(Key|Value)$</param>
</subjectPatterns>
</configuration>
</plugin>To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/4447fa61-eb88-41bd-934f-c7746dd97871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/2def3be2-1ea2-4063-a9eb-f56764887c41%40googlegroups.com.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/dbdd8953-2a0c-495f-8d56-91200516ed8f%40googlegroups.com.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/aa1f0c64-f4dc-4cc3-8e8c-6992c70c097b%40googlegroups.com.
--Thanks,
Ewen