Help Center/ MapReduce Service/ Component Operation Guide (Normal)/ Using HBase/ Common Issues About HBase/ What Can I Do If a Message Indicating Insufficient Permission Is Displayed When a Tenant Uses HBase BulkLoad?
Updated on 2024-10-08 GMT+08:00

What Can I Do If a Message Indicating Insufficient Permission Is Displayed When a Tenant Uses HBase BulkLoad?

Question

When a tenant uses HBase bulkload, a message is displayed indicating that the permission is insufficient.

Answer

The tenant must be associated with the HBase service and YARN queue when being created.

The following is an example:

Create the user user and bind the user to the role with the same name as the tenant.

To use the bulkload function, additional permissions are required.

The following uses user as an example:

For details, see section "Importing Data in Batches." The differences are as follows:

  1. Run the following commands to create the data file directory in the /tmp directory:

    hdfs dfs -mkdir /tmp/datadirImport

    hdfs dfs -put data.txt /tmp/datadirImport

  2. Use the /tmp directory of HDFS when generating HFiles.

    hbase com.huawei.hadoop.hbase.tools.bulkload.ImportData -Dimport.skip.bad.lines=true -Dimport.separator=',' -Dimport.bad.lines.output=/tmp/badline -Dimport.hfile.output=/tmp/hfile configuration.xml ImportTable /tmp/datadirImport

  3. Use the /tmp directory of HDFS when importing HFiles.

    hbase org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles /tmp/hfile ImportTable