Create HDFS User Directories
To run workloads that leverage HDP cluster services, make sure that HDFS directories
) are created for each user so that they can seamlessly connect to HDP from Cloudera
Data Science Workbench.
- SSH to a host in the cluster that includes the HDFS client.
Switch to the
hdfssystem account user:
su - hdfs
Create an HDFS directory for the user. For example, you would create the following
directory for the default user
hdfs dfs -mkdir /user/admin
Assign ownership of the new directory to the user. For example, fo rthe new
/user/admindirectory, make the
adminuser the owner of the directory:
hdfs dfs -chown admin:hadoop /user/admin