I have setup a single node multi-user hadoop cluster.
In my cluster, there is an admin user that is responsible for running the cluster (superuser). All other users are allocated a hdfs directory like /home/xyz where xyz is a username.
In unix, we can change the default home directory for a user in /etc/passwd. And by default, landing directory for a user is the home directory.
How do I do it in hadoop for hdfs file system.
I want for example, if user types:
$hadoop dfs -ls on the unix prompt.
It shall list the contents of the home directory allocated by me.
Further, hdfs directories are created by the superuser who runs the cluster(hadoop superuser and not unix root) and then transfers the ownership to a particular user.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…