jmnarloch/zuul-route-cassandra-spring-cloud-starter

keyspace issue

Closed this issue · 1 comments

I migrate to Maven and Spring Boot 1.3.5

I got the following exception :

Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: No keyspace has been specified. USE a keyspace, or explicitly specify keyspace.tablename

any idea ?
thanks

it seems that keyspace couldn't be null
Adding DEFAULT_KEYSPACE fix the issue.

/**
 * The default keyspace.
 */
private static final String DEFAULT_KEYSPACE = "zuul";
/**
 * Creates new instance of {@link CassandraZuulRouteStore}.
 *
 * @param cassandraOperations the cassandra template
 */
public CassandraZuulRouteStore(CassandraOperations cassandraOperations) {
    this(cassandraOperations, DEFAULT_KEYSPACE, DEFAULT_TABLE_NAME);
}