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.

How to write script in Ranger

Solved Go to solution
Highlighted

How to write script in Ranger

New Contributor

In hive schema, I have 300 tables and my requirement is provide access to 100 tables to a set of users. Is there anyway In Ranger to add tables in bulk while creating a policy.

In the Ranger Create Policy UI, I can add table one by one.

Is there a way to write script to add tables to Ranger policy.

Thanks for your help !!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to write script in Ranger

3 REPLIES 3

Re: How to write script in Ranger

Re: How to write script in Ranger

Contributor

Re: How to write script in Ranger

Contributor

@Amit Kumar Agarwal If wildcards can be used to specify the tables (for example: "test*", "finance*"), it can make working with policies a little easier i.e. simpler than looking through a long list of tables. Ranger supports 2 wildcard characters "*" (0 or more characters) and "?" (single character).