Last active
January 27, 2020 22:04
-
-
Save iht/37c4a026d4665dab1f5e9a0545f88730 to your computer and use it in GitHub Desktop.
Read all unacknowledged messages in a Kafka topic with KafkaIO in Apache Beam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KafkaIO.read[String, String] | |
.withBootstrapServers(config.broker) | |
.withTopic(config.kafkaTopic) | |
.withKeyDeserializer(classOf[StringDeserializer]) | |
.withValueDeserializer(classOf[StringDeserializer]) | |
.withStartReadTime(Instant.ofEpochMilli(1)) | |
.withoutMetadata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment