Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Restrict user from uploading certain type of files in HDFS

Highlighted

Restrict user from uploading certain type of files in HDFS

Explorer

Hi, Can we restrict user from uploading certain type of files in HDFS? For example we do not want the user to upload a file with extension .exe. If yes then how can I achieve that.

2 REPLIES 2

Re: Restrict user from uploading certain type of files in HDFS

You can use Ranger Authorizer to achieve this. You need to create policy with deny conditions in order to make this work.

https://cwiki.apache.org/confluence/display/RANGER/Deny-conditions+and+excludes+in+Ranger+policies

Highlighted

Re: Restrict user from uploading certain type of files in HDFS

Explorer

@Anibal_Linares Thank you for your response. I went through the article mentioned and found that there was no provision for mention of file type. Could see that you can specify group of users only. I want to have this policy for all the users. May be I need to explore more on Ranger. Currently we do not have it installed and will have to check with the Admin. Meanwhile I'll explore Ranger and also if there are any other possible solution for this.

Don't have an account?
Coming from Hortonworks? Activate your account here