简体   繁体   English

Cassandra 3.0 中的身份验证被破坏

[英]authentication in Cassandra 3.0 is broken

On a new installation of cassandra 3.0.20 on redhat 7 I can not list roles.在 redhat 7 上新安装 cassandra 3.0.20 时,我无法列出角色。 I have tried the option of fixing /etc/alternatives/cassandra/cassandra.yaml with...我已经尝试使用...修复/etc/alternatives/cassandra/cassandra.yaml的选项...

authenticator: PasswordAuthenticator

and then restart the service.然后重新启动服务。

still when I run a simple command like LIST ROLES I get the following error.仍然当我运行像LIST ROLES这样的简单命令时,我收到以下错误。

cassandra@cqlsh> list roles; cassandra@cqlsh> 列出角色;

Unauthorized: Error from server: code=2100 [Unauthorized] message="You have to be logged in and not anonymous to perform this request"未经授权:来自服务器的错误:代码 = 2100 [未经授权] 消息 =“您必须登录而不是匿名才能执行此请求”

It turns out that systemctl was not completely stopping cassandra due to weirdness with Redhat 7 and the init file.事实证明,由于 Redhat 7 和 init 文件的怪异,systemctl 并没有完全停止 cassandra。 Therefore the changes to my cassandra.yaml were not taking effect.因此对我的 cassandra.yaml 的更改没有生效。

Once I killed cassandra, made a proper cassandra.service and restarted the desired settings took effect, and I am able to run operations like "LIST ROLES;"一旦我杀死了 cassandra,制作了一个正确的 cassandra.service 并重新启动所需的设置生效,我就可以运行像“LIST ROLES;”这样的操作了normally.一般。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM