简体   繁体   English

在单节点cassandra上启用身份验证

[英]Enable authentication on single node cassandra

I am trying to enable authentication on cassandra (single node scenario) but when I enable PaswordAuthenticator, I run into into Quorun consistency leve is not satisfied. 我试图在cassandra上启用身份验证(单节点方案),但是当我启用PaswordAuthenticator时,我遇到了Quorun一致性级别不满意的情况。 But If I can not login in the first place, how am I suppose to alter replication factor. 但是,如果我不能首先登录,我应该如何更改复制因子。

You need to restart all nodes with authentication enabled, and the login using default user cassandra with password cassandra : 您需要重新启动所有启用了身份验证的节点,并使用默认用户cassandra和密码cassandra登录:

cqlsh -u cassandra -p cassandra

Then change replication for system_auth keyspace, repair it, etc. Here are the more detailed instructions . 然后更改system_auth密钥空间的复制,进行修复等。这是更详细的说明

Regarding the QUORUM error message - for single node cluster the quorum is equal to 1, so if you get this error, then it could be that you had other nodes in this cluster registered, but they weren't correctly removed. 关于QUORUM错误消息-对于单节点群集,仲裁数等于1,因此,如果收到此错误,则可能是您在该群集中注册了其他节点,但未正确删除它们。

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

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