damccorm opened a new issue, #21225: URL: https://github.com/apache/beam/issues/21225
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): ``` 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")) ... ``` Imported from Jira [BEAM-12871](https://issues.apache.org/jira/browse/BEAM-12871). Original Jira may contain additional context. Reported by: denesb. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
