Cassandra

From Objectif Client Inc
Revision as of 19:27, 11 October 2020 by Nicolas (talk | contribs) (→‎Cassandra)
Jump to navigation Jump to search

Cassandra

nodetool status
bin/cqlsh localhost
SELECT cluster_name, listen_address FROM system.local;
  • Update /etc/cassandra/yaml to add password authentification
Old value:
authenticator: AllowAllAuthenticator

Change with this new value:
authenticator: PasswordAuthenticator
  • Test new configuration
cqlsh -u cassandra -p cassandra
  • Change default cassandra password
ALTER USER cassandra WITH PASSWORD 'newPassword';


create KEYSPACE mmyKeyspace WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': 3};


CREATE KEYSPACE IF NOT EXISTS myWorkspace