Created
May 17, 2019 06:11
-
-
Save ayushi24041992/52a24e42449643694afb8fa50857b4a5 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
override def setKafkaProperties(): Properties = { | |
val kafkaProps: Properties = new Properties() | |
kafkaProps.put("bootstrap.servers", "localhost:9092,localhost:9093") | |
kafkaProps.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer") | |
kafkaProps.put("value.serializer", ".SampleMessageSerializer") | |
kafkaProps.put("acks", "all") | |
kafkaProps.put("retries", "3") | |
kafkaProps.put("linger.ms", "5") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment