Updated on 2022-09-14 GMT+08:00

Preparing a Development User

The development user is used to run the sample project. The user must have component permissions to run the sample project.

Prerequisites

Kerberos authentication has been enabled for the MRS cluster. Skip this step if Kerberos authentication is not enabled for the cluster.

Procedure

  1. Log in to and choose System > Manage Role > Create Role.

    1. Enter a role name, for example, mrrole.
    2. Edit the role. In Permission, choose Yarn > Scheduler Queue > root, select Submit and Admin.
    3. In Permission, choose HBase > HBase Scope, select Create, Read, Write, and Execute for global.
    4. In Permission, choose HDFS > File System > hdfs://hacluster/ and select Read, Write, and Execute.
    5. In Permission, choose Hive > Hive Read Write Privileges and select Create, Select, Delete, and Insert for default.
    6. Click OK.

  2. Choose System > Manage User > Create User to create a user for the sample project.
  3. Enter a username, for example, test. Set User Type to Machine-machine, and select supergroup in User Group. Set Primary Group to supergroup, select mrrole in Assign Rights by Role, and click OK.
  4. On MRS Manager, choose System > User Management. On the displayed page, select test from the Username drop-down list. In the Operation column on the right, choose More > Download authentication credential. Save the downloaded package and decompress it to obtain the user.keytab and krb5.conf files for security authentication in the sample project, as shown in Preparing Kerberos Authentication.

    Figure 1 Downloading the authentication credential