Details
Description
Adding ACL support for the Mount Table management. Following is the initial design of ACL control for the mount table management.
Each mount table has its owner, group name and permission.
The mount table permissions (FsPermission), here we use org.apache.hadoop.fs.permission.FsPermission to do the access check:
- READ permission: you can read the mount table info.
- WRITE permission: you can add remove or update this mount table info.
- EXECUTE permission: This won't be used.
The add command of mount table will be extended like this
$HADOOP_HOME/bin/hdfs dfsrouteradmin [-add <source> <nameservice> <destination> [-owner <owner>] [-group <group>] [-mode <mode>]]
<mode> is UNIX-style permissions for the mount table. Permissions are specified in octal, e.g. 0755. By default, this is set to 0755.
If we want update the ACL info of specfied mount table, just execute add command again. This command not only adding for new mount talle but also updating mount table once it finds given mount table is existed.