Updated on 2024-11-29 GMT+08:00

Creating a Metadata Role

Scenario

Create and configure a Metadata role on FusionInsight Manager as an MRS cluster administrator.

You can assign the Metadata role the Metadata administrator permissions and metadata permissions.

Prerequisites

  • The MRS cluster administrator has understood service requirements.
  • You have created a service user, for example, user1.
  • HBase or Hive metadata has been extracted.

Procedure

  1. Choose System > Permission > Role.
  2. Click Create Role, and enter the role name and description in Role Name and Description, for example, Metadata_role.
  3. Set Configure Resource Permission. For details, see Table 1.

    Metadata permissions:

    • HBase Metadata Privileges: HBase metadata permissions
    • Hive Metadata Privileges: Hive metadata permissions
    • Admin: Metadata administrator permissions
    Table 1 Setting a role

    Task

    Role Authorization

    Setting Metadata administrator permissions

    In the Configure Resource Permission table, choose Name of the desired cluster > Metadata, and select Admin.

    Assigning users the permission to read HBase metadata

    1. In Configure Resource Permission, choose Name of the desired cluster > Metadata > HBase Metadata Privileges.
    2. In Rights, select HBase Metadata Read to add the permission to read data from the metadata database. To enable metadata tables to inherit the permissions, select Recursive.
    3. Click the HBase metadata database name. In the corresponding Rights column, select HBase Metadata Read to add the permission to read data from the metadata table.

    Assigning users the permission to read Hive metadata

    1. In Configure Resource Permission, choose Name of the desired cluster > Metadata > Hive Metadata Privileges.
    2. In Rights, select Hive Metadata Read to add the permission to read data from the metadata database. To enable metadata tables to inherit the permissions, select Recursive.
    3. Click the Hive metadata database name. In the corresponding Rights column, select Hive Metadata Read to add the permission to read data from the metadata table.

  4. Click OK, and return to the Role page.
  5. Choose System > Permission > User. Click Modify next to user1, click Add next to Role, select Metadata_role and Manager_viewer, and click OK.
  6. Click OK.