Last active
November 12, 2018 06:56
-
-
Save anmol2709/9042a31c6b1e8eb9e14df9f59a6b8650 to your computer and use it in GitHub Desktop.
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
val consumerSettings = ConsumerSettings(system, new ByteArrayDeserializer, new StringDeserializer) | |
.withBootstrapServers("localhost:9092") | |
.withGroupId("akka-stream-kafka-test") | |
.withProperty(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest") | |
val kafkaSource: Source[ConsumerRecord[Array[Byte], String], Consumer.Control] = | |
Consumer.plainSource(consumerSettings, Subscriptions.topics("kafkaTopic")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment