You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2022/01/11 18:27:00 UTC
[jira] [Commented] (BEAM-12871) Support for Confluent Schema Registry
[ https://issues.apache.org/jira/browse/BEAM-12871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17473020#comment-17473020 ]
Beam JIRA Bot commented on BEAM-12871:
--------------------------------------
This issue was marked "stale-P2" and has not received a public comment in 14 days. It is now automatically moved to P3. If you are still affected by it, you can comment and move it back to P2.
> Support for Confluent Schema Registry
> -------------------------------------
>
> Key: BEAM-12871
> URL: https://issues.apache.org/jira/browse/BEAM-12871
> Project: Beam
> Issue Type: Improvement
> Components: cross-language, io-py-kafka
> Reporter: Dénes Bartha
> Priority: P3
>
> I would like to use the Python components [{{apache_beam.io.kafka.}}{{WriteToKafka}}|https://beam.apache.org/releases/pydoc/2.32.0/apache_beam.io.kafka.html#apache_beam.io.kafka.WriteToKafka] and [{{apache_beam.io.kafka.ReadFromKafka}}|https://beam.apache.org/releases/pydoc/2.32.0/apache_beam.io.kafka.html#apache_beam.io.kafka.ReadFromKafka] while accessing and updating [Schema Registry|https://docs.confluent.io/platform/current/schema-registry/serdes-develop/serdes-protobuf.html] for sending and reading `protobuf` messages.
> In Java it is possible to achieve [this|https://beam.apache.org/releases/javadoc/2.22.0/org/apache/beam/sdk/io/kafka/KafkaIO.html]:
>
> {code:java}
> PCollection<KafkaRecord<Long, GenericRecord>> input = pipeline
> .apply(KafkaIO.<Long, GenericRecord>read()
> .withBootstrapServers("broker_1:9092,broker_2:9092")
> .withTopic("my_topic")
> .withKeyDeserializer(LongDeserializer.class)
> // Use Confluent Schema Registry, specify schema registry URL and value subject
> .withValueDeserializer(
> ConfluentSchemaRegistryDeserializerProvider.of("http://localhost:8081", "my_topic-value"))
> ...
> {code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)