Avijoy Chakma
Avijoy Chakma

Reputation: 167

When Cassandra authentication enabled, opscenter can not connect to the cluster

Using Datastax Community Edition. When Password authentication is enabled, opscenter can not connect with cassandra. I can access cassandra through cqlsh shortcut where I provided username and password modifying shortcut's target field. Opscenter log refers that user not logged in. Is there any way to overcome it or it is stil a bug ?
Opscenter log error

Upvotes: 2

Views: 2735

Answers (1)

BrianC
BrianC

Reputation: 10721

When connecting OpsCenter to a Cassandra cluster with authentication enabled, you can provide the username and password in the "Thrift username" and "Thrift password" options in the dialog:

Thrift username/password in OpsCenter

If you have previously connected OpsCenter to the Cassandra cluster and then later enabled authentication (which sounds like your case), you will need to add the username and password to the cluster configuration file for OpsCenter. You may need to restart OpsCenter after this change in order to pick it up. Follow the instructions in Cassandra connection properties to add to cluster_name.conf file a section like:

[cassandra]
username = your-username-here
password = your-password-here
seed_hosts = node1,node2,node3
api_port = 9160

Upvotes: 7

Related Questions