- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to write script in Ranger
- Labels:
-
Apache Ranger
Created ‎09-28-2016 09:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 !!
Created ‎09-28-2016 09:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using ranger rest api you can achieve this. Pls refer - https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Policy+Management
Created ‎09-28-2016 09:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using ranger rest api you can achieve this. Pls refer - https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Policy+Management
Created ‎09-28-2016 09:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For HDP-2.3 or later, please use the REST API documented here: https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Service+Definition%2C+Service+and+P...
Created ‎09-28-2016 09:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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).
