This is an automated email from the ASF dual-hosted git repository.
rmani pushed a commit to branch ranger-2.5
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.5 by this push:
new 11fbdf94b RANGER-4840:Fix compilation error in Ranger Hive Plugin
module
11fbdf94b is described below
commit 11fbdf94bc1d373717403f020895e4f93ad991c5
Author: Ramesh Mani <[email protected]>
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");