I have a Cassandra cluster with 3 nodes and want to enable PasswordAuthenticator. I have made the following changes in cassandra.yaml.
authenticator: PasswordAuthenticator
authorizer: CassandraAuthorizer
role_manager: CassandraRoleManager
roles_validity_in_ms: 60000
roles_update_interval_in_ms: 60000
permissions_validity_in_ms: 60000
permissions_update_interval_in_ms: 60000
credentials_validity_in_ms: 60000
credentials_update_interval_in_ms: 60000
I have increased the validity interval to 60 seconds because there won't be frequent changes in roles.
Now, when i restart a cassandra node, the node sometimes connect successfully with client but after a few seconds, it starts giving "Connection timeout" error. Also, the CPU load increases to 100%. I have attached both screenshots.
During this time, if i run nodetool status
, all 3 nodes are shown as UN and service cassandra status
also shows Active status
Note: I have not enabled PasswordAuthenticator on all nodes. I just tried it on one node and it starts giving timeout error on connection request.
UPDATE: Tried enabling on all nodes but still getting same error.