Set up HDFS user directory for Workflow Manager View
You must set up a directory for each user that accesses the Workflow Manager View.
[USER_NAME]is the user name of the currently logged in user that is accessing Workflow Manager View.
Since many users leverage the default Ambari admin user for getting started with Ambari, you should create a
- Connect to a host in the cluster that includes the HDFS client.
Switch to the HDFS system account user.
su - hdfs
- If working on a secure Kerberos cluster.
Destroy any existing Kerberos tickets.
kdestroyIf no ticket is found, you get an error message that you can ignore: No credentials cache file found while destroying cache.
Obtain a Kerberos ticket-granting ticket.
kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs
- Destroy any existing Kerberos tickets.
Using the HDFS client, make an HDFS directory for the user.
For example, if your username is wfmadmin, you would create the following directory: hadoop fs -mkdir /user/wfmadmin
Set the ownership on the newly created directory.
For example, if your username is wfmadmin, the directory owner should be wfmadmin:hadoop.hadoop fs -chown wfmadmin:hadoop /user/wfmadmin
Log in as root user.
Access the Kerberos administration system.
Create a new principal and password for the user.
addprinc -pw [wfmadmin-password] wfmadmin@EXAMPLE.COMYou can use the same user name and password that you used for HDFS directory.