我想执行以下命令:
alter KEYSPACE system_auth
WITH replication =
{ 'class' : 'SimpleStrategy',
'replication_factor' : 2 };system_auth不显示为键位是正常的吗?
基本上会出现以下错误:
Bad Request: Unknown keyspace system_auth另外,我如何查看已存在的键位?在cqlsh中查看它们是可能的吗?
发布于 2014-03-06 15:12:47
当您使用authenticator: AllowAllAuthenticator (默认情况下)时,不会创建该密钥空间。因此,设置您的authenticator,重新启动您的节点,就可以了
发布于 2014-05-06 13:42:08
新的system_auth安装中不存在cassandra密钥空间。这将在通过更改cassandra.yaml中的两个属性,即"authenticator: PasswordAuthenticator“和"authorizer: CassandraAuthorizer”启用身份验证时自动创建。
要查看键位,请使用cql命令"desc keyspace“或"select * from system.schema_keyspaces;”。
https://stackoverflow.com/questions/22216182
复制相似问题