You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by st...@apache.org on 2022/08/18 01:52:59 UTC

[impala] 03/04: IMPALA-9442: (Addendum) Fix Ozone jar name for older Ozone

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 1f2e90a7f92f3b5024f028212f5bdd79afc38ae7
Author: Michael Smith <mi...@cloudera.com>
AuthorDate: Mon Aug 15 13:46:39 2022 -0700

    IMPALA-9442: (Addendum) Fix Ozone jar name for older Ozone
    
    Ozone 1.2 changed the name of its hadoop adapter jar. Logic to link
    against the jar in pom.xml was correctly updated, but the jar name used
    in HADOOP_CLASSPATH assumed Ozone 1.2. Updates the jar in
    HADOOP_CLASSPATH to use the correct jar for the detected Ozone version.
    
    Change-Id: I7e401075268ebd81af8b8cac72504f0d1a4e59f1
    Reviewed-on: http://gerrit.cloudera.org:8080/18852
    Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 bin/impala-config.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/impala-config.sh b/bin/impala-config.sh
index 42fb2924a..19868d806 100755
--- a/bin/impala-config.sh
+++ b/bin/impala-config.sh
@@ -717,7 +717,7 @@ export HADOOP_LIB_DIR=${HADOOP_LIB_DIR_OVERRIDE:-"${HADOOP_HOME}/lib"}
 export HADOOP_CLASSPATH="${HADOOP_CLASSPATH-}"
 # Add Ozone Hadoop filesystem implementation when using Ozone
 if [ "${TARGET_FILESYSTEM}" = "ozone" ]; then
-  OZONE_JAR="ozone-filesystem-hadoop3-${IMPALA_OZONE_VERSION}.jar"
+  OZONE_JAR="${IMPALA_OZONE_JAR_ARTIFACT_ID}-${IMPALA_OZONE_VERSION}.jar"
   HADOOP_CLASSPATH="${HADOOP_CLASSPATH}:${OZONE_HOME}/share/ozone/lib/${OZONE_JAR}"
 fi
 # Add the path containing the hadoop-aws jar, which is required to access AWS from the