- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
HDFS Cannot change permissions of a single folder. No error is printed in logs or on the CLI.
- Labels:
-
HDFS
Created on ‎03-28-2017 10:16 PM - edited ‎03-28-2017 10:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
Cannot change permissions of a single folder on HDFS. Can change permissions of all the other folders no problem. Except this one folder. Current permissions are:
drwxrwx--x - app app 0 2017-03-28 14:29 /app/drops
None of these commands work to change the permission and nothing is printed, not even a permission denied is printed:
root@ss01nn01 # hdfs dfs -setfacl -m other::r-x /app/drops root@ss01nn01 # hdfs dfs -chmod 775 /app/drops
I've enabled more debugging in HDFS via Cloudera Manager, but still nothing.
hdfs fsck /
prints no issues. What else can we try to figure out the issue here and set the permissions?
Cheers,
Created ‎03-28-2017 10:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-> Configuration -> "Enable Sentry Synchronization" checked?
If yes, is /app or /app/drops configured as a path prefix under HDFS ->
Configuration -> "Sentry Synchronization Path Prefixes"?
If yes, then Sentry is currently managing all permissions for that path,
and will ignore any type of change you try to make. You can use GRANT
statements in Hive or Impala to add explicit access to tables or databases
using this path as their location field, but direct manipulation of
permissions will be entirely ignored.
This feature, if you're using it, is further explained at
https://www.cloudera.com/documentation/enterprise/latest/topics/sg_hdfs_sentry_sync.html
Created on ‎03-28-2017 10:33 PM - edited ‎03-28-2017 10:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not have Sentry enabled. At least I don't have that option under the Configuration menu.
I don't have "Enable Sentry Synchronization" enabled either.
And it is only one path on HDFS that is having these issues. No other path on HDFS is having this issue.
Created ‎03-29-2017 06:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any ideas?
Thank you for the help thus far.
Created ‎03-29-2017 06:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hadoop fs -ls -d /
hadoop fs -ls -d /app
hadoop fs -ls -d /app/drop
hadoop fs -getfacl /app/drop
Additionally, on the NameNode host, could you post the output by running the below command as-is?
grep -F authorization.provider -A1 $(ls -rtd /var/run/cloudera-scm-agent/process/*-NAMENODE | tail -1)/hdfs-site.xml
Created ‎03-30-2017 10:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. Here is the result:
# hadoop fs -ls -d / drwxr-xr-x - hdfs supergroup 0 2017-03-15 11:45 / # hadoop fs -ls -d /app/ drwxrwxrwx - appacnt appacnt 0 2017-03-28 23:46 /app # hadoop fs -getfacl /app/drop # file: /app/drop # owner: appacnt # group: appacnt user::rwx group::rwx other::--x #
# grep -F authorization.provider -A1 $(ls -rtd /var/run/cloudera-scm-agent/process/*-NAMENODE | tail -1)/hdfs-site.xml <name>dfs.namenode.authorization.provider.class</name> <value>com.company.department.sf.hdfs.authz.provider.SfAuthzProvider</value> #
Permission of other will simply not change with any attempt. Tried to kinit to other users, including the owner of that folder, but that had no effect.
Cheers,
Tom
Created ‎03-30-2017 11:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sentry HDFS ACLs work in similar fashion (a Sentry HDFS Authz plugin is inserted via the same config you noticed above) and begins to ignore permissions being applied on the controlled paths like I'd described before, but in your case it seems like something locally engineered and configured.
I'd recommend contacting the developers of your plugin for more information, instead of removing it from your HDFS Configuration safety valves (which would resolve the issue, but its probably there for a reason).
Created ‎06-08-2017 12:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! This help helps me too!
