我尝试以默认的Cassandra用户身份登录时在Cassandra中创建角色,并且弹出此错误
cassandra@cqlsh> create role admin with password = 'admin'
... and superuser = true
... and login = true;
Unauthorized: Error from server: code=2100 [Unauthorized] message="Only superusers can
create a role with superuser status"
我还应该注意,我已经在cassandra.yaml文件中将authenticator: AllowAllAuthenticator
更改为authenticator: PasswordAuthenticator
,将authorizer: AllowAllAuthorizer
更改为authorizer: CassandraAuthorizer
,并在完成这些操作后重新启动了Cassandra服务更改,但错误仍然弹出。