Hello I'm trying to run the test from examples:
...
@OverRide
public void connect() {
SocketOptions socketOptions = new SocketOptions();
socketOptions.setReadTimeoutMillis(500);
cluster = Cluster.builder()
.addContactPoint("localhost")
.withPort(port)
.withRetryPolicy(new LoggingRetryPolicy(new RetryReads()))
.withSocketOptions(socketOptions)
.build();
session = cluster.connect("scassandra");
storeStatement = session.prepare("insert into person(first_name, last_name, age, interesting_dates) values (?,?,?,?)");
retrieveStatement = session.prepare("select * from person where first_name = ? and last_name = ?");
}
...
And I'm getting this error
java.lang.IllegalStateException: system.local is empty on localhost/127.0.0.1:8042, this should not happen at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:774) at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:319)
Hello I'm trying to run the test from examples:
...
@OverRide
public void connect() {
SocketOptions socketOptions = new SocketOptions();
socketOptions.setReadTimeoutMillis(500);
cluster = Cluster.builder()
.addContactPoint("localhost")
.withPort(port)
.withRetryPolicy(new LoggingRetryPolicy(new RetryReads()))
.withSocketOptions(socketOptions)
.build();
session = cluster.connect("scassandra");
storeStatement = session.prepare("insert into person(first_name, last_name, age, interesting_dates) values (?,?,?,?)");
retrieveStatement = session.prepare("select * from person where first_name = ? and last_name = ?");
}
...
And I'm getting this error
java.lang.IllegalStateException: system.local is empty on localhost/127.0.0.1:8042, this should not happen at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:774) at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:319)