Step 7: Prepare the cluster for each user
Before users access the cluster, there are a few tasks you must complete to prepare the hosts for each user.
Make sure all hosts in the cluster have a Linux user account with the same name as the
first component of that user's principal name. For example, the Linux account
joeshould exist on every box if the user's principal name is
joe@YOUR-REALM.COM. You can use LDAP for this step if it is available in your organization.
Create a subdirectory under
/useron HDFS for each user account (for example,
/user/joe). Change the owner and group of that directory to be the user.
hadoop fs -mkdir /user/joe hadoop fs -chown joe /user/joe