how to install Cassandra and how to set Cassandra

2019-09-14 19:15发布

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条回答
Evening l夕情丶
2楼-- · 2019-09-14 20:16

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

查看更多
登录 后发表回答