Skip to content

Commit

Permalink
removed zkclient
Browse files Browse the repository at this point in the history
  • Loading branch information
adkharat committed Nov 27, 2024
1 parent 65ebf84 commit 2576948
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ ext.versions = [
cassandra : '3.4.0',
commons_cli : '1.3.1',
thrift : '0.9.3',
kafka : '2.8.2',
zkclient : '0.10'
kafka : '2.8.2'
]

ext.libraries = [
Expand Down Expand Up @@ -102,8 +101,7 @@ ext.libraries = [
commons_cli : "commons-cli:commons-cli:${versions.commons_cli}",
thrift : "org.apache.thrift:libthrift:${versions.thrift}",
kafka_clients : "org.apache.kafka:kafka-clients:${versions.kafka}",
kafka : "org.apache.kafka:kafka_2.12:${versions.kafka}",
zkclient : "com.101tec:zkclient:${versions.zkclient}"
kafka : "org.apache.kafka:kafka_2.12:${versions.kafka}"
]

ext.tempto_core = project(':tempto-core')
Expand Down
1 change: 0 additions & 1 deletion tempto-kafka/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ apply plugin: 'java'
dependencies {
compile tempto_core
compile libraries.kafka
compile libraries.zkclient
}

// project information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,7 @@ private void createTopic(String topic, int partitionsCount, int replicationLevel
try {
adminClient.createTopics(Collections.singletonList(newTopic)).all().get();
} catch (ExecutionException | InterruptedException e) {
if (e.getCause() instanceof TopicExistsException) {
// Topic already exists, no need to create
} else {
throw new RuntimeException("Failed to create topic " + topic, e);
}
throw new RuntimeException("Failed to create topic " + topic, e);
}
});
}
Expand Down

0 comments on commit 2576948

Please sign in to comment.