I get an error with cassandra Authenticator. cqlsh return me this error after I changed the value "authenticator" in cassandra.yaml file:
Connection error: (‘Unable to connect to any servers’, {’127.0.0.1’: AuthenticationFailed(‘Failed to authenticate to 127.0.0.1: Error from server: code=0100 [Bad credentials] message=“org.apache.cassandra.exceptions.UnavailableException: Cannot achieve consistency level QUORUM’“)})
here is the command I ran step by step:
sudo apt-get install cassandra
cqlsh
ALTER KEYBASE system_auth with REPLICATION = { 'class' : 'NetworkTopologyStrategy',
‘dc1’: 3 }*// dans cqlsh
//replace AllowAllAuthenticator by PasswordAuthenticator in cassandra.yaml
sudo service cassandra restart
cqlsh -u cassandra -p cassandra
Connection error: (‘Unable to connect to any servers’, {’127.0.0.1’: AuthenticationFailed(‘Failed to authenticate to 127.0.0.1: Error from server: code=0100 [Bad credentials] message=“org.apache.cassandra.exceptions.UnavailableException: Cannot achieve consistency level QUORUM’“)})
I follow this part Configuration authentication
here is my configuration:
[cqlsh 5.0.1 | Cassandra3.0.9 | CQL spec 3.4.0 | Native protocol v4] Ubuntu 16.04.1
Any ideas ?
Thanks a lot :)