3

I wanted to do the following command:

alter KEYSPACE system_auth 
WITH replication =  
       { 'class' : 'SimpleStrategy', 
         'replication_factor' : 2 };

Is it normal that system_auth is not shown as a keyspace?


Basically the following error occurs:

Bad Request: Unknown keyspace system_auth


Also, how do I even view the keyspaces that exist? Is viewing them even possible in cqlsh?

Crowie
  • 3,220
  • 7
  • 28
  • 48
Charlie Parker
  • 5,884
  • 57
  • 198
  • 323

2 Answers2

5

That keyspase is not created when you use authenticator: AllowAllAuthenticator (which is by default). So, setup your authenticator, restart your node, and you'll be fine

Mikhail Stepura
  • 3,374
  • 20
  • 16
0

The system_auth keyspace does not exist in a fresh cassandra installation . This will automatically be created when authentication is enable by changing the two properties in cassandra.yaml i.e. "authenticator: PasswordAuthenticator" and "authorizer: CassandraAuthorizer" .

To view the keyspaces use the cql command "desc keyspaces" or "select * from system.schema_keyspaces;".

Rohan
  • 113
  • 7