cqlsh> CREATE KEYSPACE e_xists WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
cqlsh> CREATE KEYSPACE e_xists WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
InvalidRequest: Error from server: code=2200 [Invalid query] message="Keyspace Already Exists. Keyspace 'e_xists' already exists
CREATE KEYSPACE e_xists WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
^^^^^^
(ql error -307)"
Cassandra response:
cqlsh> CREATE KEYSPACE e_xists WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
cqlsh> CREATE KEYSPACE e_xists WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
AlreadyExists: Keyspace 'e_xists' already exists
@victor
For the meantime, can you execute connect to the cluster without creating a default keyspace ?
And issue a create keyspace "mykeyspace" if not exists ... and not
“can you execute connect to the cluster without creating a default keyspace” - exception on connect because I defined default keyspace in cluster build.