Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

For all command examples, replace $theNEWusername with the username being created.

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
languagebash
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
languagebash
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.

...