Skip to content

Commit a1ddf1a

Browse files
committed
move to latest kafka client
1 parent a2646fe commit a1ddf1a

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

deploy.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mvn clean package; mv target/kafka-monitor-1.0-SNAPSHOT.jar target/dependency/
2+

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<dependency>
6262
<groupId>org.apache.kafka</groupId>
6363
<artifactId>kafka-clients</artifactId>
64-
<version>0.10.2.1</version>
64+
<version>2.1.0</version>
6565
<exclusions>
6666
<exclusion>
6767
<artifactId>slf4j-api</artifactId>

src/main/java/org/kairosdb/kafka/monitor/KafkaModule.java

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import org.apache.kafka.clients.consumer.ConsumerConfig;
77
import org.apache.kafka.clients.producer.ProducerConfig;
88
import org.apache.kafka.common.serialization.Serdes;
9-
import org.apache.kafka.streams.StreamsConfig;
109

1110
import javax.inject.Named;
1211
import java.util.Properties;

src/main/java/org/kairosdb/kafka/monitor/OffsetListenerService.java

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ private Map<Integer, Long> getLatestTopicOffsets(String topic)
214214

215215
private void postEvent(DataPointEvent event)
216216
{
217+
217218
//Metrics are kinda wonky the first time through so we skip those.
218219
if (m_runCounter != 0)
219220
m_publisher.post(event);

0 commit comments

Comments
 (0)