How to manage permissions in Kylin.

In Kylin, permission management mainly involves the following aspects:

  1. User management: Kylin supports the creation of multiple users who can be authenticated through their username and password. To create a user, you can use the following command:
bin/kylin.sh org.apache.kylin.rest.service.UserService createUser <用户名> <密码> <角色>
  1. Role management: Kylin supports the creation of multiple roles, allowing for the assignment of different roles to different users in order to control their access to Kylin resources. Roles can be created using the following commands.
bin/kylin.sh org.apache.kylin.rest.service.UserService createRole <角色名>
  1. Permission management: Kylin supports assigning different permissions to different roles, allowing control of their access to resources such as Cube, Model, and Project. Use the following command to assign permissions to roles:
bin/kylin.sh org.apache.kylin.rest.service.UserService grant <角色名> <资源类型> <资源名称> <权限>
  1. Permission verification: Kylin will check the user’s permissions upon login, and only users with the appropriate permissions can perform the corresponding operations.

By following the above steps, you can implement Kylin’s permission management to ensure the security of data and the legitimacy of users.

Leave a Reply 0

Your email address will not be published. Required fields are marked *