Step 7: Prepare the Cluster for Each User
Before you and other users can access the cluster, there are a few tasks you must do 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 joe should 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 /user on 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