diff --git a/extensions-core/kafka-extraction-namespace/src/test/java/org/apache/druid/query/lookup/TestKafkaExtractionCluster.java b/extensions-core/kafka-extraction-namespace/src/test/java/org/apache/druid/query/lookup/TestKafkaExtractionCluster.java index d72a7ac9086..773821eb98b 100644 --- a/extensions-core/kafka-extraction-namespace/src/test/java/org/apache/druid/query/lookup/TestKafkaExtractionCluster.java +++ b/extensions-core/kafka-extraction-namespace/src/test/java/org/apache/druid/query/lookup/TestKafkaExtractionCluster.java @@ -150,7 +150,7 @@ public class TestKafkaExtractionCluster private Map getConsumerProperties() { final Map props = new HashMap<>(KAFKA_PROPERTIES); - int port = kafkaServer.socketServer().config().port(); + int port = kafkaServer.socketServer().config().advertisedListeners().apply(0).port(); props.put("bootstrap.servers", StringUtils.format("127.0.0.1:%d", port)); return props; } @@ -194,7 +194,7 @@ public class TestKafkaExtractionCluster { final Properties kafkaProducerProperties = new Properties(); kafkaProducerProperties.putAll(KAFKA_PROPERTIES); - int port = kafkaServer.socketServer().config().port(); + int port = kafkaServer.socketServer().config().advertisedListeners().apply(0).port(); kafkaProducerProperties.put("bootstrap.servers", StringUtils.format("127.0.0.1:%d", port)); kafkaProducerProperties.put("key.serializer", ByteArraySerializer.class.getName()); kafkaProducerProperties.put("value.serializer", ByteArraySerializer.class.getName()); diff --git a/extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/test/TestBroker.java b/extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/test/TestBroker.java index 44020d744ee..f028e4b0c45 100644 --- a/extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/test/TestBroker.java +++ b/extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/test/TestBroker.java @@ -95,7 +95,7 @@ public class TestBroker implements Closeable public int getPort() { - return server.socketServer().config().port(); + return server.socketServer().config().advertisedListeners().apply(0).port(); } public KafkaProducer newProducer() diff --git a/licenses.yaml b/licenses.yaml index edf3b9cf51d..b8baa3e9c21 100644 --- a/licenses.yaml +++ b/licenses.yaml @@ -3654,7 +3654,7 @@ libraries: --- name: Apache Kafka -version: 2.8.0 +version: 3.0.0 license_category: binary module: extensions/druid-kafka-indexing-service license_name: Apache License version 2.0 @@ -4564,7 +4564,7 @@ name: Apache Kafka license_category: binary module: extensions/kafka-extraction-namespace license_name: Apache License version 2.0 -version: 2.8.0 +version: 3.0.0 libraries: - org.apache.kafka: kafka-clients notices: diff --git a/pom.xml b/pom.xml index b978e063cf7..6e35118983d 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ 0.9.0.M2 4.3.0 2.12.0 - 2.8.0 + 3.0.0 2.0.0 2.2.4 1.17.0