Preparing an HDFS Application Development User
Prerequisites
Kerberos authentication has been enabled for the MRS cluster. Skip this step if Kerberos authentication is not enabled for the cluster.
Scenario
The development user is used to run the sample project. The user must have HDFS permissions to run the HDFS sample project.
Procedure
- Log in to MRS Manager and choose System > Manage Role > Create Role.
- Enter a role name, for example, hdfsrole.
- Edit the role. In Permission, choose HDFS > File System > hdfs://hacluster/, select Read, Write, and Execute, and click OK.
- Choose to create a user for the sample project.
- Enter a username, for example, hdfsuser. Set User Type to Machine-machine, and select supergroup in User Group. Set Primary Group to supergroup, select hdfsrole in Assign Rights by Role, and click OK.
- On MRS Manager, choose System > User Management. On the displayed page, select hdfsuser from the Username drop-down list. In the Operation column on the right, choose More > Download authentication credential. Save the downloaded package and decompress it to obtain the user.keytab and krb5.conf files for security authentication in the sample project, as shown in Figure 1.
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