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:
- 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
- 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
- Use the /tmp directory of HDFS when importing HFiles.
hbase org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles /tmp/hfile ImportTable
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot