cassandra - 无法使用 cassandra 帐户创建角色
问题描述
我正在尝试在以默认 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"
我还应该注意,我已经更改了authenticator: AllowAllAuthenticator
cassandra.yaml文件中authenticator: PasswordAuthenticator
的authorizer: AllowAllAuthorizer
authorizer: CassandraAuthorizer