...
Rest of this document will refer this script as kafka-sentry.sh
and and will use it for performing CRUD operations on roles and privileges. Below is usage info from the tool.
Code Block |
---|
$ kafka-sentry
usage: kafka-sentry
-arg,--add_role_group Add role to group
-conf,--sentry_conf <arg> sentry-site file path
-cr,--create_role Create role
-dr,--drop_role Drop role
-drg,--delete_role_group Delete role from group
-g,--groupname <arg> Group name
-gpr,--grant_privilege_role Grant privilege to role
-h,--help Shell usage
-lp,--list_privilege List privilege
-lr,--list_role List role
-p,--privilege <arg> Privilege string
-r,--rolename <arg> Role name
-rpr,--revoke_privilege_role Revoke privilege from role |
Creating a role
Code Block |
---|
$ kafka-sentry -cr -r test
$ kafka-sentry -lr
test |