Skip to content

Commit 11083b1

Browse files
making hard coded ip better
1 parent 5e75349 commit 11083b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/datastax/cdm/CassandraDatasetManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ void install(String name) throws IOException, InterruptedException, GitAPIExcept
223223
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
224224

225225
Config config = mapper.readValue(configFile, Config.class);
226-
226+
String address = "127.0.0.1";
227227
{
228-
Cluster cluster = Cluster.builder().addContactPoint("10.10.10.1").build();
228+
Cluster cluster = Cluster.builder().addContactPoint(address).build();
229229
Session session = cluster.connect();
230230

231231
StringBuilder createKeyspace = new StringBuilder();
@@ -247,7 +247,7 @@ void install(String name) throws IOException, InterruptedException, GitAPIExcept
247247
System.out.println("Loading data");
248248

249249
Cluster cluster2 = Cluster.builder()
250-
.addContactPoint("10.10.10.1")
250+
.addContactPoint(address)
251251
.build();
252252

253253
Session session = cluster2.connect(config.keyspace);

0 commit comments

Comments
 (0)