Friday, April 12, 2013

1.2.3 user and password setting

1.In the cassandra.yaml, comment out the default AllowAllAuthorizer and add the CassandraAuthorizer as shown
here:
#authorizer: org.apache.cassandra.auth.AllowAllAuthorizer
authorizer: org.apache.cassandra.auth.CassandraAuthorizer


and restart -> now you can access to cassandra 

cassandra-cli -u cassandra -pw cassandra 

because cassandra/cassandra is default setting

============================================================================

2. if you use window and want to connect cqlsh 

refer to this blog


============================================================================

3. access on prom "cassandra_path/bin"/python cqlsh -u cassandra -p cassandra

CREATE USER spillman WITH PASSWORD 'Niner27';
CREATE USER akers WITH PASSWORD 'Niner2' SUPERUSER;
CREATE USER boone WITH PASSWORD 'Niner75' NOSUPERUSER;

DROP USER user_name

No comments:

Post a Comment