All Products
Search
Document Center

ApsaraDB for OceanBase:HBase data source

Last Updated:Nov 08, 2024

This topic describes how to create a user for an instance of ApsaraDB for HBase Performance-enhanced Edition, and the permissions required for the user when the HBase instance serves as the source.

Background

When you create an instance of ApsaraDB for HBase Performance-enhanced Edition, the root user is created by default. The `root` user has all permissions, including read, write, admin, trash, and system. When you use the data transmission service to migrate data from an instance of ApsaraDB for HBase Performance-enhanced Edition to OBKV, you can create a user and grant permissions to the user as needed.

You need to enter the username in the Username field when you create an HBase data source.

image

Create a user for an instance of ApsaraDB for HBase Performance-enhanced Edition

  1. Log on to the ApsaraDB for HBase console.

  2. On the Clusters page, click the ID of the target cluster of ApsaraDB for HBase Performance-enhanced Edition (Lindorm) 2.0.

    image

  3. On the Basic Information page, click Access Control in the left-side navigation pane to add your client IP address to the allowlist.

    1. Run the ifconfig command to obtain the client IP address.

    2. On the Whitelist Setting tab of the Access Control page, click Modify Whitelist under the target allowlist.

      image

      To add an allowlist, click Add Whitelist and complete related settings. For more information, see Configure an allowlist.

    3. In the Modify Whitelist dialog box, enter the client IP address.

    4. Click OK.

  4. Log on to the Lindorm Insight page.

    1. On the Access Control page, click Cluster Management in the left-side navigation pane.

    2. On the Cluster Management page, click ClusterManagerInternet.

      Important

      If you log on to the Lindorm Insight page for the first time, click Reset Ul Access Password in the upper-right corner of the UI Access section to change the logon password.

      image

    3. In the Log On dialog box, specify Username and Password.

    4. Click Log On.

  5. Create a user.

    1. On the Lindorm Insight page, choose Data Manager > User Manager in the left-side navigation pane.

    2. On the User Manager page, click Add user in the upper-right corner.

      image

    3. In the Add User dialog box, specify Username and Password.

    4. Click OK.

      You can view this user on the User Manager page.

      image

Grant permissions to a user of a source HBase instance

  1. On the User Manager page, click More in the row of the target user and select Grant global permission.

    image

    You can also grant permissions on namespaces or tables to the user. For more information, see Manage users.

  2. In the Grant global permission dialog box, select READ and WRITE.

    When the HBase instance serves as the source, the user created for the HBase instance must have the READ permission for schema migration, full data migration, and full verification, and the WRITE permission for reverse incremental migration. Default permissions are sufficient for the user to perform incremental synchronization.

    image

  3. Click OK.