Last active
March 25, 2020 06:56
-
-
Save pavangadagi/4eee9d43b48dcd73c216500371fdc3d0 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
Map<String,Object> kafkaParams = new HashMap<String, Object>(); | |
kafkaParams.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, brokers); | |
kafkaParams.put(ConsumerConfig.GROUP_ID_CONFIG, groupId); | |
kafkaParams.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class); | |
kafkaParams.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, JsonDeserializer.class); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment