This is an automated email from the ASF dual-hosted git repository.

rmani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new 72f6c5704 RANGER-4840:Fix compilation error in Ranger Hive Plugin 
module
72f6c5704 is described below

commit 72f6c5704ff88124ae8e7000f0665c4a952e16a3
Author: Ramesh Mani <rm...@apache.org>
AuthorDate: Tue Jul 2 00:39:51 2024 -0700

    RANGER-4840:Fix compilation error in Ranger Hive Plugin module
---
 .../ranger/authorization/hive/authorizer/RangerHiveAccessRequest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAccessRequest.java
 
b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAccessRequest.java
index 13695b17f..e1b466137 100644
--- 
a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAccessRequest.java
+++ 
b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAccessRequest.java
@@ -22,10 +22,10 @@ package org.apache.ranger.authorization.hive.authorizer;
 import java.util.Date;
 import java.util.Set;
 
+import org.apache.commons.lang.StringUtils;
 import 
org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthzSessionContext;
 import 
org.apache.hadoop.hive.ql.security.authorization.plugin.HiveOperationType;
 import 
org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthzContext;
-import org.apache.ranger.audit.utils.StringUtil;
 import org.apache.ranger.plugin.policyengine.RangerAccessRequestImpl;
 import org.apache.ranger.plugin.policyengine.RangerPolicyEngine;
 import org.apache.ranger.plugin.util.RangerAccessRequestUtil;
@@ -60,7 +60,7 @@ public class RangerHiveAccessRequest extends 
RangerAccessRequestImpl {
                        
this.setForwardedAddresses(context.getForwardedAddresses());
                        this.setRemoteIPAddress(context.getIpAddress());
                        String requestData = context.getCommandString();
-                       if (StringUtil.isEmpty(requestData) && 
ACTION_TYPE_METADATA_OPERATION.equals(hiveOpTypeName)) {
+                       if (StringUtils.isEmpty(requestData) && 
ACTION_TYPE_METADATA_OPERATION.equals(hiveOpTypeName)) {
                                String resourceType = 
resource.getObjectType().name();
                                if (resourceType.equalsIgnoreCase("DATABASE")) {
                                        this.setRequestData("show databases");

Reply via email to