如何安装Cassandra以及如何设置Cassandra用户名和密码&适用于netbeans的连接器 [英] how to install Cassandra and how to set Cassandra username and password & its proper connector for netbeans

查看:195
本文介绍了如何安装Cassandra以及如何设置Cassandra用户名和密码&适用于netbeans的连接器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Net Beans用户,除Cassandra之外,我禁止使用任何其他数据库,因此我只能从开放源代码进行安装.但是在安装Cassandra时,它没有询问我任何用户名或密码(因此,我没有输入用户名和密码),但是Net Bean总是要求密码和用户名将其连接到任何数据库(例如Cassandra& Oracle). &我不知道用户名& Cassandra的密码...您能帮我如何找到Cassandra的用户名​​和密码吗?如果有,Cassandra的Net bean连接器.或有关如何连接Net bean&的步骤卡桑德拉.

I am Net beans user and I am forbidden to use any other database except Cassandra so I install it simply from an open source. But it did not ask me for any username or password while installing Cassandra(So I do not its username and password) but Net beans always ask password and username to connect it to any data base(Like Cassandra & Oracle). & I do not know the Username & password for Cassandra... can you help me how to find Username and password for Cassandra And Net beans connector to Cassandra if any. Or steps for how to connect Net beans & Cassandra.

推荐答案

默认情况下,Cassandra默认不进行身份验证和授权.

By default, Cassandra defaults to no authentication and no authorization.

在您的Cassandra安装中,打开conf文件夹中的cassandra.yaml并设置:

In your Cassandra installation, open cassandra.yaml in conf folder and set:

authenticator: PasswordAuthenticator
authorizer: CassandraAuthorizer

重新启动Cassandra服务器. (nodetool stopdaemon可用于停止)

Restart your Cassandra server. ( nodetool stopdaemon can be used to stop)

之后,您应该可以使用以下用户名登录:用户名:cassandra和密码:cassandra

After that you should be able to login with: Username: cassandra and Password: cassandra

有关创建用户的更多信息,请参见: 如何在Cassandra DB中创建第一个用户

More information about creating users can be found here: How do you create the first user in Cassandra DB

要在Netbeans中使用Cassandra,可以使用此插件,需要手动安装.

Coming to using Cassandra in Netbeans, you can use this plugin, you need to install it manually.

http://plugins.netbeans.org/plugin/59444

这篇关于如何安装Cassandra以及如何设置Cassandra用户名和密码&适用于netbeans的连接器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆