--
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/b46ba099-7c83-4836-999b-267b02e39990%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Are you instantiating ZK and Kafka yourself or are you using the KafkaServerTestHarness from Kafka (https://github.com/apache/kafka/blob/trunk/core/src/test/scala/unit/kafka/integration/KafkaServerTestHarness.scala)? Schema registry has something similar called ClusterTestHarness (https://github.com/confluentinc/schema-registry/blob/master/core/src/test/java/io/confluent/kafka/schemaregistry/ClusterTestHarness.java) that you might be able to use if you pull in the test artifacts for schema-registry.Alternatively, you should just be able to instantiate it yourself just like that class does -- just instantiate and call the appropriate lifecycle methods of the io.confluent.kafka.schemaregistry.RestApp class (https://github.com/confluentinc/schema-registry/blob/master/core/src/test/java/io/confluent/kafka/schemaregistry/RestApp.java). The Main class is pretty straightforward and should offer some guidance for how to use the RestApp class: https://github.com/confluentinc/schema-registry/blob/master/core/src/main/java/io/confluent/kafka/schemaregistry/rest/Main.javaThe MockSchemaRegistryClient is intended for in-process unit testing, but it was originally just for internal testing (and called LocalSchemaRegistryClient). Recent changes have renamed it and we might want to make it more useful for testing like you're talking about since it's much lighter weight than running the full service, but currently not all the serializer/deserializer classes support passing in the schema registry client. At the moment, you might need to run the actual schema registry as described above.-Ewen
On Wed, Jun 24, 2015 at 4:04 PM, Tony Zhao <yut...@gmail.com> wrote:
I can have test zookeeper and kafka servers in memory for testing our data pipeline, is there a way to test with a schema-registry in memory so that I can test our setup with the confluent platform? I see that there is a MockSchemaRegistryClient, but not sure how I would use that in our code to achieve an in memory schema registry. Any help is appreciated!Thanks,Tony
--
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/b46ba099-7c83-4836-999b-267b02e39990%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
I was following the example code here https://cwiki.apache.org/confluence/display/KAFKA/FAQ#FAQ-HowdoIwriteunittestsusingKafka?
I tried downloading the test jar you mentioned but it doesn't look like it is published or perhaps I have the name incorrect?
[warn] ==== Confluent repository: tried[warn] ::::::::::::::::::::::::::::::::::::::::::::::[warn] :: FAILED DOWNLOADS ::[warn] :: ^ see resolution messages for details ^ ::[warn] ::::::::::::::::::::::::::::::::::::::::::::::[warn] :: io.confluent#kafka-schema-registry;1.0!kafka-schema-registry.jar[warn] ::::::::::::::::::::::::::::::::::::::::::::::
On Wednesday, June 24, 2015 at 4:33:39 PM UTC-7, Ewen Cheslack-Postava wrote:
Are you instantiating ZK and Kafka yourself or are you using the KafkaServerTestHarness from Kafka (https://github.com/apache/kafka/blob/trunk/core/src/test/scala/unit/kafka/integration/KafkaServerTestHarness.scala)? Schema registry has something similar called ClusterTestHarness (https://github.com/confluentinc/schema-registry/blob/master/core/src/test/java/io/confluent/kafka/schemaregistry/ClusterTestHarness.java) that you might be able to use if you pull in the test artifacts for schema-registry.Alternatively, you should just be able to instantiate it yourself just like that class does -- just instantiate and call the appropriate lifecycle methods of the io.confluent.kafka.schemaregistry.RestApp class (https://github.com/confluentinc/schema-registry/blob/master/core/src/test/java/io/confluent/kafka/schemaregistry/RestApp.java). The Main class is pretty straightforward and should offer some guidance for how to use the RestApp class: https://github.com/confluentinc/schema-registry/blob/master/core/src/main/java/io/confluent/kafka/schemaregistry/rest/Main.javaThe MockSchemaRegistryClient is intended for in-process unit testing, but it was originally just for internal testing (and called LocalSchemaRegistryClient). Recent changes have renamed it and we might want to make it more useful for testing like you're talking about since it's much lighter weight than running the full service, but currently not all the serializer/deserializer classes support passing in the schema registry client. At the moment, you might need to run the actual schema registry as described above.-Ewen
On Wed, Jun 24, 2015 at 4:04 PM, Tony Zhao <yut...@gmail.com> wrote:
I can have test zookeeper and kafka servers in memory for testing our data pipeline, is there a way to test with a schema-registry in memory so that I can test our setup with the confluent platform? I see that there is a MockSchemaRegistryClient, but not sure how I would use that in our code to achieve an in memory schema registry. Any help is appreciated!Thanks,Tony
--
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/b46ba099-7c83-4836-999b-267b02e39990%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-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/578cff11-d1bd-4229-a745-f144ea91c9ab%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/b46ba099-7c83-4836-999b-267b02e39990%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/578cff11-d1bd-4229-a745-f144ea91c9ab%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/b46ba099-7c83-4836-999b-267b02e39990%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/578cff11-d1bd-4229-a745-f144ea91c9ab%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/08c3dfa4-aabd-4f06-b61a-678a390834ac%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/b46ba099-7c83-4836-999b-267b02e39990%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/578cff11-d1bd-4229-a745-f144ea91c9ab%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.
--
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/fdf11074-08eb-4aee-a1fa-49b1869733fc%40googlegroups.com.