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 HBase permissions to run the OpenTSDB 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, as shown in Figure 1.

    Figure 1 Creating a role
    1. Enter a role name, for example, opentsdbrole.
    2. Edit a role. Choose HBase> HBase Scope > global in Permission. Select Read, Write, and Execute, and click OK, as shown in Figure 2.
    Figure 2 Editing a role

  2. Choose System > Manage User Group > Create User Group to create a user group for the sample project, for example, opentsdgroup.
  3. Choose System > Manage User > Create User to create a user for the sample project.
  4. Enter a username, for example, opentsdbuser. Set User Type to Human-machine, and select opentsdb, hbase, opentsdbgroup, and supergroup in User Group. Set Primary Group to opentsdbgroup, select opentsdbrole in Assign Rights by Role, and click OK. Figure 3 shows the parameter settings.

    Figure 3 Creating a user

  5. On MRS Manager, choose System > Manage User, select opentsdbuser, and modify the password. Choose More > Download authentication credential from the Operation column on the right. 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, as shown in Figure 4.

    Figure 4 Downloading the authentication credential