Insufficient Rights When Useing 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:
- Create the data file directory in /tmp and run the following commands:
hdfs dfs -mkdir /tmp/datadirImport
hdfs dfs -put data.txt /tmp/datadirImport
- 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
- Use the /tmp directory of HDFS to import HFile:
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