Created
March 30, 2018 23:45
-
-
Save jnbdz/dcf5725e885e2d2670d162d6f286eec9 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
/** | |
* Page: 44-45 | |
*/ | |
private Properties kafkaProps = new Properties(); | |
kafkaProps.put("bootstrap.severs", "broker1:9092,broker2:9092"); | |
kafkaProps.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer"); | |
kafkaProps.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer"); | |
producer = new KafkaProducer<String, String>(kafkaProps); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment