我目前对 Cassandra 使用以下配置:
authenticator: PasswordAuthenticator
authorizer: org.apache.cassandra.auth.CassandraAuthorizer
Run Code Online (Sandbox Code Playgroud)
我的问题是:如何禁用角色管理以使用正常的 CQL system.permissions
整体禁用角色的原因是因为在 roleManagement 处于活动状态时我无法使用创建新用户:
user@cqlsh> create user testuser with password '123';
InvalidRequest: code=2200 [Invalid query] message="org.apache.cassandra.auth.CassandraRoleManager doesn't support PASSWORD"
Run Code Online (Sandbox Code Playgroud)
小智 6
我遇到了同样的问题。我修改cassandra.yaml文件如下:
authenticator: org.apache.cassandra.auth.PasswordAuthenticator
authorizer: org.apache.cassandra.auth.CassandraAuthorizer
Run Code Online (Sandbox Code Playgroud)
并重新启动节点。这对我有用。
您还可以检查以下链接
| 归档时间: |
|
| 查看次数: |
8736 次 |
| 最近记录: |