Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.8.0
-
None
Description
HDFS_PERMISSION_DEFAULT set to 771, but it is 1403(r------wt) in fact.
permission = FsPermission.createImmutable(
(short) newConf.getLong(SentryAuthorizationConstants.HDFS_PERMISSION_KEY,
SentryAuthorizationConstants.HDFS_PERMISSION_DEFAULT)
FsPermission.createImmutable parse short by bit.
public void fromShort(short n) { FsAction[] v = FSACTION_VALUES; set(v[(n >>> 6) & 7], v[(n >>> 3) & 7], v[n & 7], (((n >>> 9) & 1) == 1) ); } // 771 => 0011 0000 0011 => 001 100 000 011 => 1403
Attachments
Attachments
Issue Links
- relates to
-
SENTRY-1404 Use the new INodeAttributesProvider API in sentry-hdfs
- Resolved