Bonjour,

Je rencontre un souci avec cassandra authenticator.

cqlsh me renvoie cette erreur après avoir changé la valeur authenticator dans le fichier cassandra.yaml:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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’“)})
voici la démarche commande par commande que j'ai effectué :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
sudo apt-get install cassandra
 
cqlsh
 
ALTER KEYBASE system_auth with REPLICATION = { 'class' : 'NetworkTopologyStrategy',
‘dc1’: 3 }*// dans cqlsh
 
//remplacer AllowAllAuthenticator par PasswordAuthenticator dans 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’“)})
Pour info, j'ai suivie cette partie: https://docs.datastax.com/en/archive...ativeAuth.html

quelques infos de versions:

[cqlsh 5.0.1 | Cassandra3.0.9 | CQL spec 3.4.0 | Native protocol v4]
Ubuntu 16.04.1

Merci d'avance pour votre aide