Updated on 2024-08-16 GMT+08:00

Preparing a Hive Application Development User

The development user is used to run the sample project. The user must have Hive permissions to run the Hive 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 MRS Manager. For details, see Logging in to MRS Manager.
  2. On MRS Manager, choose System > Manage Role > Create Role, as shown in Figure 1.

    Figure 1 Creating a Hive role
    1. Enter a role name, for example, hiverole.
    2. In the Permissions table, choose Hive> Hive Read Write Privileges and select Select, Delete, Insert, and Create, as shown in Figure 2.
      Figure 2 Hive permission assignment
    3. In the Permissions table, choose Yarn > Scheduler Queue > root, and select Submit and Admin for default, as shown in Figure 3.
      Figure 3 Yarn permission assignment
    4. Click OK.

  3. Choose System > Manage User > Create User to create a user for the sample project.
  4. Enter a username, for example, hiveuser. Set User Type to Machine-machine, and select supergroup in User Group. Set Primary Group to supergroup, select hiverole in Assign Rights by Role, and click OK. Figure 4 shows the parameter settings.

    Figure 4 Creating a Hive user

  5. On MRS Manager, choose System > Manage User and select hiveuser. In the Operation column on the right, choose More > Download authentication credential. See Figure 5. Save the file and decompress it to obtain the user.keytab and krb5.conf files. The two files are used for security authentication in the sample project.

    Figure 5 Downloading the authentication credential

Related Information

If you modify component parameter configurations, you need to download the client configuration file again and update the client in the running and commissioning environment.