-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/50375/
-----------------------------------------------------------
(Updated July 26, 2016, 9:23 a.m.)
Review request for ranger, Gautam Borad, Madhan Neethiraj, Pradeep Agrawal,
Ramesh Mani, and Velmurugan Periasamy.
Changes
-------
Handled both the review comments and verified Ranger installation with
HiveServicedef and also without HiveServiceDef.
Bugs: RANGER-1120
https://issues.apache.org/jira/browse/RANGER-1120
Repository: ranger
Description
-------
**Problem Statement**
In order to allow users migrating to 0.6 version of Ranger from earlier version
to use row level filtering policies and column masking policies, Need to have a
JAVA patch that migrates servicedef to have default values defined in hive
servicedef.
**Proposed Solution**
In order to populate default configs for datamask and rowfilter objects in
HiveServiceDef, I have added the java patch that will read those objects from
json and add it to the databse.
Diffs (updated)
-----
agents-common/src/main/java/org/apache/ranger/plugin/store/EmbeddedServiceDefsUtil.java
2002295
security-admin/src/main/java/org/apache/ranger/patch/PatchForHiveServiceDefUpdate_J10006.java
PRE-CREATION
Diff: https://reviews.apache.org/r/50375/diff/
Testing
-------
**Verified :**
1) Upgraded Ranger from 0.5 to 0.6 successfully.
2) After upgrade hive shows all three tabs for policy types i.e. Access,Masking
and Row Level Filter
3) Checked for all HIVE issues reported in Jira. None of them are reproducible
(check the screenshots attached)
4) Policy enforcement works as expected
Thanks,
Mehul Parikh