Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.18.1
-
None
-
None
-
Reviewed
-
New filesystem shell command -df reports capacity, space used and space free. Any user may execute this command without special privileges.
Description
super user privileges are required in DFS in order to get the file system statistics (FSNamesystem.java, getStats method). This means that when HDFS is mounted via fuse-dfs as a non-root user, "df" is going to return 16exabytes total and 0 free instead of the correct amount.
As far as I can tell, there's no need to require super user privileges to see the file system size (and historically in Unix, this is not required).
To fix this, simply comment out the privilege check in the getStats method.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-2659 The commands in DFSAdmin should require admin privilege
- Closed