You must set up a
directory for each user that accesses the Workflow Manager View.
Workflow Manager View stores user metadata in the user
directory in HDFS. By default, the location in HDFS for the user directory is
/user/[USER_NAME]
, where [USER_NAME]
is the user name
of the currently logged in user that is accessing Workflow Manager View. | Important |
---|
Since many users leverage the default Ambari admin user for
getting started with Ambari, you should create a /user/admin directory
if one does not exist, in addition to directories for other Workflow Manager View
users. |
-
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.
kdestroy
If 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
-
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.
su -
-
Access the Kerberos administration system.
kadmin.local
-
Create a new principal and password for the user.
addprinc -pw [wfmadmin-password]
wfmadmin@EXAMPLE.COM
You can use the same user name and password that you used for HDFS
directory.
Repeat steps 2 through 8 for any additional Workflow Manager
View users.