【问题标题】:authentication in Cassandra 3.0 is brokenCassandra 3.0 中的身份验证被破坏
【发布时间】:2020-07-01 06:09:56
【问题描述】:

在 redhat 7 上新安装 cassandra 3.0.20 时,我无法列出角色。我已经尝试使用...修复/etc/alternatives/cassandra/cassandra.yaml 的选项...

authenticator: PasswordAuthenticator

然后重启服务。

当我运行像LIST ROLES 这样的简单命令时,仍然出现以下错误。

cassandra@cqlsh> 列出角色;

未经授权:来自服务器的错误:code=2100 [Unauthorized] message="您必须登录且非匿名才能执行此请求"

【问题讨论】:

  • 尝试同时设置 CassandraAuthorizer。
  • @Aaron 我确实添加了授权人:CassandraAuthorizer 并重新启动,仍然没有成功

标签: authentication cassandra


【解决方案1】:

事实证明 systemctl 并没有完全停止 cassandra,因为 Redhat 7 和 init 文件很奇怪。因此对我的 cassandra.yaml 的更改没有生效。

一旦我杀死了 cassandra,创建了一个适当的 cassandra.service 并重新启动所需的设置,我就可以运行“LIST ROLES;”之类的操作了正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-27
    • 2013-09-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多