diff --git a/geomesa-kafka/geomesa-kafka-datastore/src/main/scala/org/locationtech/geomesa/kafka/data/KafkaDataStore.scala b/geomesa-kafka/geomesa-kafka-datastore/src/main/scala/org/locationtech/geomesa/kafka/data/KafkaDataStore.scala index 1101b2407c1c..34efecb5397f 100644 --- a/geomesa-kafka/geomesa-kafka-datastore/src/main/scala/org/locationtech/geomesa/kafka/data/KafkaDataStore.scala +++ b/geomesa-kafka/geomesa-kafka-datastore/src/main/scala/org/locationtech/geomesa/kafka/data/KafkaDataStore.scala @@ -229,6 +229,7 @@ class KafkaDataStore( val topic = KafkaDataStore.topic(sft) val props = new Properties() props.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, config.brokers) + config.consumers.properties.foreach { case (k, v) => props.put(k, v) } config.producers.properties.foreach { case (k, v) => props.put(k, v) } WithClose(AdminClient.create(props)) { admin => @@ -266,6 +267,7 @@ class KafkaDataStore( val topic = KafkaDataStore.topic(sft) val props = new Properties() props.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, config.brokers) + config.consumers.properties.foreach { case (k, v) => props.put(k, v) } config.producers.properties.foreach { case (k, v) => props.put(k, v) } WithClose(AdminClient.create(props)) { admin => diff --git a/geomesa-kafka/geomesa-kafka-datastore/src/main/scala/org/locationtech/geomesa/kafka/data/KafkaMetadata.scala b/geomesa-kafka/geomesa-kafka-datastore/src/main/scala/org/locationtech/geomesa/kafka/data/KafkaMetadata.scala index fae229dbb090..a37644ac4424 100644 --- a/geomesa-kafka/geomesa-kafka-datastore/src/main/scala/org/locationtech/geomesa/kafka/data/KafkaMetadata.scala +++ b/geomesa-kafka/geomesa-kafka-datastore/src/main/scala/org/locationtech/geomesa/kafka/data/KafkaMetadata.scala @@ -111,6 +111,7 @@ class KafkaMetadata[T](val config: KafkaDataStoreConfig, val serializer: Metadat private def adminClientOp[V](fn: AdminClient => V): V = { val props = new Properties() props.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, config.brokers) + config.consumers.properties.foreach { case (k, v) => props.put(k, v) } config.producers.properties.foreach { case (k, v) => props.put(k, v) } WithClose(AdminClient.create(props)) { admin => fn(admin) } }