Skip to content

Commit

Permalink
Disable JMX reporting for datastax client to avoid dependency conflic…
Browse files Browse the repository at this point in the history
…ts with newer versions of Dropwizard
  • Loading branch information
Kevin Conaway authored and jsevellec committed May 1, 2018
1 parent d4da16c commit 7346b9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ private static void otherTypeOfDataSetLoad(String host, String port, String file

Cluster cluster = com.datastax.driver.core.Cluster.builder()
.addContactPoints(host)
.withoutJMXReporting()
.withPort(Integer.parseInt(port))
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ protected static void load() {
private static void dataSetLoad(String host, String port, String file) {
Cluster cluster = Cluster.builder()
.addContactPoints(host)
.withoutJMXReporting()
.withPort(Integer.parseInt(port))
.build();
CQLDataLoader dataLoader = new CQLDataLoader(cluster.connect());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public static void startEmbeddedCassandra(File file, String tmpDir, long timeout
cluster = com.datastax.driver.core.Cluster.builder()
.addContactPoints(EmbeddedCassandraServerHelper.getHost())
.withPort(EmbeddedCassandraServerHelper.getNativeTransportPort())
.withoutJMXReporting()
.withQueryOptions(queryOptions)
.build();

Expand Down

0 comments on commit 7346b9a

Please sign in to comment.