Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cassandra 密钥空间系统_auth不存在?_Cassandra_Cassandra 2.0 - Fatal编程技术网

Cassandra 密钥空间系统_auth不存在?

Cassandra 密钥空间系统_auth不存在?,cassandra,cassandra-2.0,Cassandra,Cassandra 2.0,我想执行以下命令: alter KEYSPACE system_auth WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 2 }; system_auth不显示为键空间是否正常 基本上会出现以下错误: Bad Request: Unknown keyspace system_auth 此外,我如何查看现有的键空间?在cqlsh中查看它们是否可能?当您使用

我想执行以下命令:

alter KEYSPACE system_auth 
WITH replication =  
       { 'class' : 'SimpleStrategy', 
         'replication_factor' : 2 };
system_auth不显示为键空间是否正常


基本上会出现以下错误:

Bad Request: Unknown keyspace system_auth


此外,我如何查看现有的键空间?在cqlsh中查看它们是否可能?

当您使用
身份验证程序:AllowAllAuthenticator时,不会创建KeyPase

(默认情况下)。因此,设置您的
身份验证器
,重新启动您的节点,您就会没事了

新的cassandra安装中不存在系统身份验证密钥空间。当通过更改cassandra.yaml中的两个属性(即“authenticator:PasswordAuthenticator”和“authorizer:CassandraAuthorizer”)启用身份验证时,将自动创建此属性


要查看键空间,请使用cql命令“desc keyspaces”或“select*from system.schema_keyspaces;”

我正在使用ccm并执行您指示的操作,但system_auth keyspace仍然不可用