- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Files view- how to select specific folders
- Labels:
-
Apache Ambari
Created ‎12-02-2016 02:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am an Ambari admin and am able to make file views and allocate users to views, however, I want to make a file view such that the selected user is ONLY able to access the specific folder where their data is kept. I am currently only able to allocate them a file view wherein they can go into ANY of the folders.
Could someone please tell me how to customise the file view such that I can make only certain folders viewable to certain users?
I do not have Ranger and have looked at quite a few posts, but have not been able to workout how to do this. Any advice would be greatly appreciated.
Thanks.
Created ‎12-02-2016 07:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately Ambari File View does not have such capability to assign HDFS folder specific access rights.
However Ranger can provide such feature.
As you do not have Ranger hence you may want to look at the HDFS ACLs : http://hortonworks.com/blog/hdfs-acls-fine-grained-permissions-hdfs-files-hadoop/
And
https://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html
.
Created ‎12-02-2016 07:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately Ambari File View does not have such capability to assign HDFS folder specific access rights.
However Ranger can provide such feature.
As you do not have Ranger hence you may want to look at the HDFS ACLs : http://hortonworks.com/blog/hdfs-acls-fine-grained-permissions-hdfs-files-hadoop/
And
https://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html
.
Created ‎12-03-2016 09:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks for this, I have managed to enable ACLs by altering 'Custom hdfs-site.xml' via linux cmd and then in Ambari itself, but I can't wuite see how this enables me to hide certain folders in the files view in Ambari; the directories in Ambari do not match those that I can see in Linux, could you please advise how exactly to control access to the Ambari files view using the ACLs? The 'BLOCKING ACCESS TO A SUB-TREE FOR A SPECIFIC USER' section seems to be what I need, but I'm having trouble in locating the Ambari directories from Linux.
Thanks again.
EDIT: I am now able to access the ambari file structure via Linux, I just need to be able to set ACLs on the relevant folders for certain users
Created ‎12-04-2016 06:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could anyone please advise as to how exactly I could use ACLs to limit user views in the file view section? As mentioned above, I can limit a user view to the files view, but need to make it so that a user is only able to access certain folders and not all of them.
Thanks.
