[英]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密钥空间,您可以将其与cqlsh一起使用以返回。
$ $
./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.