how to install Cassandra and how to set Cassandra username and password & its proper connector for netbeans

六眼飞鱼酱① 提交于 2019-12-12 02:45:45

问题


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.


回答1:


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

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

authenticator: PasswordAuthenticator
authorizer: CassandraAuthorizer

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

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

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

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

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



来源:https://stackoverflow.com/questions/39645539/how-to-install-cassandra-and-how-to-set-cassandra-username-and-password-its-pr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!