Database Reference
In-Depth Information
// list user permissions.
list all permissions of normaluser;list all
permissions of cassandra;
// grant permissions to normaluser.
grant select on all keyspaces to normaluser;
This results in the authorization error shown in Figure 4-8 . Hence,
we need to enable the authorizer in cassandra.yaml .
Figure 4-8 . Managing permissions with AllowAllAuthorizer is not allowed
2.
Let's enable the authorizer configuration in cassandra.yaml and
restart the server. Figure 4-9 shows how to enable Cas-
sandraAuthorizer in cassandra.yaml .
Figure 4-9 . Enabling CassandraAuthorizer in cassandra.yaml
3.
Now, let's try to create a keyspace with normaluser :
create keyspace testkeyspace with replication
= { 'class' : 'SimpleStrategy',
'replication_factor' : 3};
Again, we get an error (see Figure 4-10 ) because create permis-
sions have not been given to normaluser .
Figure 4-10 . Error as normaluser doesn't have permission to create a keyspace
 
 
 
 
 
 
Search WWH ::




Custom Search