Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using HBase/ Common Issues About HBase/ Insufficient Rights When a Tenant Uses the HBase Bulkload Function
Updated on 2022-11-18 GMT+08:00

Insufficient Rights When a Tenant Uses the HBase Bulkload Function

Question

When a tenant uses the HBase bulkload function, a message is displayed indicating that the tenant has insufficient rights.

Answer

You need to associate the HBase service and Yarn queues when creating a tenant.

Example:

Create user user and bind it with the tenant role with the same name.

User user must be granted additional rights to use the bulkload function.

The following uses user user as an example.

For details, see Importing Data in Batches. The following describes the differences:

  1. Create the data file directory in /tmp and run the following commands:

    hdfs dfs -mkdir /tmp/datadirImport

    hdfs dfs -put data.txt /tmp/datadirImport

  2. Use the /tmp directory of HDFS to generate HFile:

    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 to import HFile:

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