...
Info |
---|
For all command examples, replace |
Edge Node / Client Gateway
On the box(es) where the user will SSH to and utilize CLI tools (this does NOT have to be a dedicated machine; for example, on the Sandbox there is only one machine), login as root and execute the following commands to create a local account and set the password.
...
Code Block | ||
---|---|---|
| ||
su hdfs hdfs dfs -mkdir /user/$theNEWusername hdfs dfs -chown $theNEWusername /user/$theNEWusername hdfs dfs -chmod -R 755 /user/$theNEWusername |
Master & Worker Nodes
On the remainder of the cluster nodes (if any), we just need to have the new user present. There is no need to set a password as these CLI users will not need to log into any of these hosts directly.
Code Block | ||
---|---|---|
| ||
useradd $theNEWusername |
User Validation
To validate, users can SSH into the edge node with their new credentials and run the following commands to verify that they can manipulate content on HDFS. Note: where in Linux user can use "~" to reference their home directory, the FS Shell treats relative referencing (i.e. nothing before the initial file or folder name) as the equivalent to "~/" which means everything is based on the user's home folder in HDFS.
...