Support Questions

Find answers, ask questions, and share your expertise

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

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

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.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.