In Cassandra, the authentication and authorization must be configured on the cassandra.yaml
file and two additional files. The first file is used to assign rights to users over the key space and column family, while the second assigns passwords to users. These files are called access.properties
and passwd.properties
, and are located in the Cassandra installation directory. These files can be opened using our favorite text editor in order to be successfully configured.
Perform the following steps:
- In the
access.properites
file we add the access rights to users and the permissions to read and write certain key spaces andcolumnfamily
. Syntax:keyspace.columnfamily.permits = users Example 1: hr <rw> = restrada Example 2: hr.cars <ro> = restrada, raparicio
- In example 1, we give full rights in the Key Space
hr
torestrada
while in example 2 we...
- In example 1, we give full rights in the Key Space