简体   繁体   English

如何找到cassandra的用户名​​密码

[英]How to Find Username Password of cassandra

Well I am new to cassandra and i dont know how to find Username and Password after installing it from a open source. 好吧,我是cassandra的新手,从开源安装后,我不知道如何查找用户名和密码。 I just install it. 我只是安装它。 When I was going to connect it to netbeans it ask username and password. 当我打算将其连接到netbeans时,询问用户名和密码。 But in cassandra, i cant find any way to find its username and password. 但是在cassandra中,我找不到任何找到其用户名和密码的方法。 Please tell me steps that I should follow to find my Username and password. 请告诉我找到我的用户名和密码时应遵循的步骤。

Stop your Cassandra cluster. 停止您的Cassandra群集。 On each node, cd down to your data directory, and execute: 在每个节点上,cd到您的数据目录,然后执行:

$ mv system_auth system_auth_20140814

Restart each node. 重新启动每个节点。 As long as the authenticator is still set (in your cassandra.yaml) to use the PasswordAuthenticator, Cassandra will rebuild the system_auth keyspace, with the default Cassandra super user, which you can use with cqlsh to get back in. 只要仍将身份验证器(在您的cassandra.yaml中)设置为使用PasswordAuthenticator,Cassandra就会使用默认的Cassandra超级用户重建system_auth密钥空间,您可以将其与c​​qlsh一起使用以返回。

$ $

./cqlsh -u cassandra -p cassandra
Connected to MyCluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.1.0-rc5-SNAPSHOT | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
cqlsh>

Notes: 笔记:

You will have to re-add all of your users, and re-apply all off their permissions. 您将必须重新添加所有用户,然后重新应用所有用户的权限。 Instead of renaming (mv) the system_auth directory, you could also just delete it (rm). 除了重命名(mv)system_auth目录,您还可以删除它(rm)。 You will have to re-apply the appropriate replication settings to your system_auth keyspace. 您将必须将适当的复制设置重新应用于system_auth密钥空间。 By default, system_auth only has a replication factor of 1. 缺省情况下,system_auth的复制因子仅为1。

If it is a fresh installation try username cassandra and password cassandra 如果是全新安装,请尝试使用用户名 cassandra密码 cassandra

This is the default username and password. 这是默认的用户名和密码。 Remember to change which can be done via cqlsh. 记住要更改,可以通过cqlsh完成。

Hope this helps. 希望这可以帮助。

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

相关问题 如何在python中将用户名和密码传递给cassandra - How to pass along username and password to cassandra in python 通过Cassandra中的用户名和密码进行身份验证 - Authentication via username and password in Cassandra 为Cassandra数据库设置用户名和密码 - Setting Username and Password For Cassandra database Phantom Scala Cassandra连接器:如何指定端口,用户名,节点密码 - Phantom Scala Cassandra connector: how to specify port, username, password of nodes 我应该如何使用 python 脚本将用户名和密码传递给 Cassandra - How should i pass username and password to Cassandra using python script 如何安装Cassandra以及如何为Netbeans设置Cassandra用户名和密码及其正确的连接器 - how to install Cassandra and how to set Cassandra username and password & its proper connector for netbeans C#到Cassandra服务的用户名和密码 - C# to Cassandra service with username and password 可以在cassandra的连接URL中传递用户名和密码吗 - Can username and password be passed in connection url for cassandra 访问cassandra没有硬编码的用户名密码 - Accessing cassandra without hardcoded username password 我应该为 Amazon Keyspaces(托管 Cassandra)使用哪个用户名和密码? - Which username and password should I use for Amazon Keyspaces (managed Cassandra)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM