fix(ingestion): set schema registry URL correctly for FMCE producer (#1839)

Fixes https://github.com/linkedin/datahub/issues/1829
This commit is contained in:
Mars Lan 2020-08-31 04:50:54 -07:00 committed by GitHub
parent 85a6cd1698
commit f4bccaf052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ public class KafkaConfig {
props.put(AbstractKafkaAvroSerDeConfig.SCHEMA_REGISTRY_URL_CONFIG, kafkaSchemaRegistryUrl);
KafkaTemplate<String, GenericRecord> template =
new KafkaTemplate<>(new DefaultKafkaProducerFactory<>(properties.buildProducerProperties()));
new KafkaTemplate<>(new DefaultKafkaProducerFactory<>(props));
log.info("KafkaTemplate built successfully");