HDFS Permission Setting Error
Issue
When using MRS, a user has the permission to delete or create files in another user's HDFS directory.
Symptom
When using MRS, a user has the permission to delete or create files in another user's HDFS directory.
Cause Analysis
The user has the permission for the ficommon group and therefore can perform any operations on the HDFS. You need to remove the user's ficommon group permission.
Procedure
- Log in to the master node in the cluster as user root.
- Run the id ${Username} command to check whether the user has the ficommon group permission.
If the user has the ficommon group permission, go to 3. If the user does not have the ficommon group permission, contact technical support.
${Username} indicates the name of the user whose HDFS permission is incorrectly set.
- Run the gpasswd -d ${Username} ficommon command to delete the user's ficommon group permission.
${Username} indicates the name of the user whose HDFS permission is incorrectly set.
- Modify parameters on Manager.
FusionInsight Manager:
- Log in to FusionInsight Manager. Choose Cluster > Services > HDFS > Configurations > All Configurations.
- Enter dfs.permissions.enabled in the search box and change the value to true.
- After the modification is complete, click Save and restart the HDFS service.
MRS console :
- Log in to the MRS console and choose Components > HDFS > Service Configuration.
- Set Type to All, enter dfs.permissions.enabled in the search box, and change the parameter value to true.
- Click Save Configuration and restart the HDFS service.
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