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

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

commit 57954760f9fc599c71ae26c679b6f06153a91103
Author: Peter Rozsa <[email protected]>
AuthorDate: Wed Sep 17 17:29:53 2025 +0200

    IMPALA-14160: add ugsync-util's jar to Hive's classpath at startup
    
    Hive Metastore's Ranger plugin introduced a runtime dependency for
    Ranger's ugsync-util module, this patch changes the classpath for Hive's
    startup script by including ugsync-util's jar.
    
    Change-Id: If03f99448a871711f8a04ad5eb775e02ecffabd4
    Reviewed-on: http://gerrit.cloudera.org:8080/23578
    Reviewed-by: Impala Public Jenkins <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 testdata/bin/run-hive-server.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testdata/bin/run-hive-server.sh b/testdata/bin/run-hive-server.sh
index 04564132a..f703ed75b 100755
--- a/testdata/bin/run-hive-server.sh
+++ b/testdata/bin/run-hive-server.sh
@@ -134,6 +134,9 @@ if [[ $ENABLE_RANGER_AUTH -eq 1 ]]; then
   # This jar file doesn't exist for Ranger 2.4 and previous versions.
   export HADOOP_CLASSPATH="${HADOOP_CLASSPATH}:\
       ${RANGER_HOME}/ews/webapp/WEB-INF/lib/hadoop-shaded-guava-*.jar"
+  # Ranger's ugsync-util module is required for the Hive plugin
+  export HADOOP_CLASSPATH="${HADOOP_CLASSPATH}:\
+      ${RANGER_HOME}/ews/webapp/WEB-INF/lib/ugsync-util-*.jar"
 fi
 
 # For Hive 3, we use Tez for execution. We have to add it to the classpath.

Reply via email to