title: Cassandra Cluster Setup Error : UnavailableException: Cannot achieve consistency level QUORUM
body: <p>We're setting up 3 node Cassandra cluster in AWS. </p>
  
  <p>We performed the below steps ; </p>
  
  <p>1) On all 3 nodes, installed the latest version of Oracle JDK 1.8.
  On all 3 nodes, installed Cassandra 2.1.8.
  On all 3 nodes, located cassandra.yaml and set the following properties:<br></p>
  
  <pre><code>cluster_name: 'ABC'
  authenticator: PasswordAuthenticator
  authorizer: CassandraAuthorizer
  write_request_timeout_in_ms: 5000
  </code></pre>
  
  <p>2) In the same file, set both "listen_address" and "rpc_address" to a permanent address of a host (the one which is not changed after Amazon VM restart).
  3) In the same file, under "seed_provider" property, set "seeds" property to a permanent address of a host (the one which is not changed after Amazon VM restart) which is choosen to be the seed.
  4) Save all changes and close the file. Also open the required ports in firewall.
  5) Started Cassandra on all nodes one by one and confirmed that all nodes are up.</p>
  
  <ul>
  <li>Problem :</li>
  </ul>
  
  <p>Connected to node 1 and executed the below query </p>
  
  <pre><code>root@ip-10-181-119-112:/etc/cassandra/bin# ./cqlsh  -u cassandra -p  cassandra 10-181-119-112
  Connected to Dev Cluster at 10-181-119-112:9042.
  [cqlsh 5.0.1 | Cassandra 2.1.8 | CQL spec 3.2.0 | Native protocol v3]
  Use HELP for help.
  
  cassandra@cqlsh&gt; ALTER KEYSPACE system_auth WITH REPLICATION = { 'class': 'NetworkTopologyStrategy', 'us-east': 3 };
  </code></pre>
  
  <p><strong>Tried to change the same on second node but I am not able to connect to second node facing below error.</strong> </p>
  
  <pre><code>root@ip-10-181-133-155:/etc/cassandra/bin# ./cqlsh -u cassandra -p cassandra 10-181-133-155
  Connection error: ('Unable to connect to any servers', {'10-181-133-155': AuthenticationFailed(u'Failed to authenticate to 10-181-133-155: code=0100 [Bad credentials] message="org.apache.cassandra.exceptions.UnavailableException: Cannot achieve consistency level QUORUM"',)})
  </code></pre>
  
  <p>Please let me know what I am doing wrong here and help me in resolving this issue.</p>