Update KafkaFetcherHandlerRegister.java (#5564)

This commit is contained in:
ai x 3 2020-09-26 19:20:38 +08:00 committed by GitHub
parent 1a27452ffc
commit c56099feb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ public class KafkaFetcherHandlerRegister implements Runnable {
public KafkaFetcherHandlerRegister(KafkaFetcherConfig config) throws ModuleStartException {
this.config = config;
Properties properties = new Properties(config.getKafkaConsumerConfig());
Properties properties = new Properties();
properties.putAll(config.getKafkaConsumerConfig());
properties.setProperty(ConsumerConfig.GROUP_ID_CONFIG, config.getGroupId());
properties.setProperty(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, config.getBootstrapServers());