【问题标题】:unable to edit cassandra user password无法编辑 cassandra 用户密码
【发布时间】:2017-10-01 19:07:09
【问题描述】:
我安装了datastax cassandra企业版,它不允许我更改默认密码。
ALTER USER cassandra WITH PASSWORD 'newpassword' SUPERUSER ;
我遇到了错误。
未经授权:来自服务器的错误:code=2100 [Unauthorized] message="Only superusers can create a role with superuser status"
非常感谢任何帮助。
谢谢,
阿什温
【问题讨论】:
标签:
cassandra
datastax-enterprise
【解决方案1】:
即使您在 cqlsh 中作为默认的 cassandra/cassandra 用户,我的猜测是它会绊倒旨在防止给自己“超级用户”的逻辑。最后不带“超级用户”试试:
Cassandra 2.1 或更低版本:
ALTER USER cassandra WITH PASSWORD 'new password';
Cassandra 2.2 或更高版本:
ALTER ROLE cassandra WITH PASSWORD='new password';
【解决方案2】:
谢谢亚伦。
我正在使用 Cassandra 3.10.0.1652 和 DSE 5.1.0
我在 dse.yaml 文件中启用内部身份验证后它工作了
authentication_options:
enabled: true
default_scheme: internal
authorization_options:
enabled: true
role_management_options:
mode: internal
谢谢,
阿什温。