Skip to content

Commit ef2ff4d

Browse files
committed
Reverted to String property keys. Fixes #87
1 parent aad4be7 commit ef2ff4d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

embedded-kafka/src/main/scala/net/manub/embeddedkafka/EmbeddedKafka.scala

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -459,20 +459,20 @@ sealed trait EmbeddedKafkaSupport {
459459
val listener = s"PLAINTEXT://localhost:${config.kafkaPort}"
460460

461461
val properties = new Properties
462-
properties.setProperty(ZkConnectProp, zkAddress)
463-
properties.setProperty(BrokerIdProp, "0")
464-
properties.setProperty(ListenersProp, listener)
465-
properties.setProperty(AdvertisedListenersProp, listener)
466-
properties.setProperty(AutoCreateTopicsEnableProp, "true")
467-
properties.setProperty(LogDirProp, kafkaLogDir.toAbsolute.path)
468-
properties.setProperty(LogFlushIntervalMessagesProp, 1.toString)
469-
properties.setProperty(OffsetsTopicReplicationFactorProp, 1.toString)
470-
properties.setProperty(OffsetsTopicPartitionsProp, 1.toString)
471-
properties.setProperty(TransactionsTopicReplicationFactorProp, 1.toString)
472-
properties.setProperty(TransactionsTopicMinISRProp, 1.toString)
462+
properties.setProperty("zookeeper.connect", zkAddress)
463+
properties.setProperty("broker.id", "0")
464+
properties.setProperty("listeners", listener)
465+
properties.setProperty("advertised.listeners", listener)
466+
properties.setProperty("auto.create.topics.enable", "true")
467+
properties.setProperty("log.dir", kafkaLogDir.toAbsolute.path)
468+
properties.setProperty("log.flush.interval.messages", 1.toString)
469+
properties.setProperty("offsets.topic.replication.factor", 1.toString)
470+
properties.setProperty("offsets.topic.num.partitions", 1.toString)
471+
properties.setProperty("transaction.state.log.replication.factor", 1.toString)
472+
properties.setProperty("transaction.state.log.min.isr", 1.toString)
473473

474474
// The total memory used for log deduplication across all cleaner threads, keep it small to not exhaust suite memory
475-
properties.setProperty(LogCleanerDedupeBufferSizeProp, "1048577")
475+
properties.setProperty("log.cleaner.dedupe.buffer.size", "1048577")
476476

477477
config.customBrokerProperties.foreach {
478478
case (key, value) => properties.setProperty(key, value)

0 commit comments

Comments
 (0)