Created
January 27, 2020 21:51
-
-
Save iht/86132ae6457d69a9bec937c9bb1bb41d 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