[
https://issues.apache.org/jira/browse/HIVE-23433?focusedWorklogId=434375&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-434375
]
ASF GitHub Bot logged work on HIVE-23433:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 18/May/20 11:23
Start Date: 18/May/20 11:23
Worklog Time Spent: 10m
Work Description: aasha commented on a change in pull request #1016:
URL: https://github.com/apache/hive/pull/1016#discussion_r426554268
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ranger/RangerRestClientImpl.java
##########
@@ -349,6 +354,90 @@ public boolean checkConnection(String url) {
return (clientResp.getStatus() < HttpServletResponse.SC_UNAUTHORIZED);
}
+ @Override
+ public List<RangerPolicy> addDenyPolicies(List<RangerPolicy> rangerPolicies,
String rangerServiceName,
+ String sourceDb, String targetDb) {
+ List<RangerPolicy> rangerPoliciesToImport = new ArrayList<RangerPolicy>();
+ if (CollectionUtils.isNotEmpty(rangerPolicies)) {
+ for (RangerPolicy rangerPolicy : rangerPolicies) {
+ rangerPoliciesToImport.add(rangerPolicy);
+ }
+ }
+
+ RangerPolicy denyRangerPolicy = null;
+
+ if (sourceDb.endsWith("/")) {
+ sourceDb = StringUtils.removePattern(sourceDb, "/+$");
Review comment:
dlm was doing this. I am not sure why
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 434375)
Time Spent: 0.5h (was: 20m)
> Add Deny Policy on Target Database After Ranger Replication to avoid writes
> ---------------------------------------------------------------------------
>
> Key: HIVE-23433
> URL: https://issues.apache.org/jira/browse/HIVE-23433
> Project: Hive
> Issue Type: Task
> Reporter: Aasha Medhi
> Assignee: Aasha Medhi
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-23433.01.patch, HIVE-23433.02.patch,
> HIVE-23433.03.patch
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)