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

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


The following commit(s) were added to refs/heads/master by this push:
     new 61e90e9e9 IMPALA-13182: Support uploading additional jars
61e90e9e9 is described below

commit 61e90e9e90bccfe591965b5011488f294a277a5d
Author: gaurav1086 <[email protected]>
AuthorDate: Tue Jun 25 18:02:41 2024 -0700

    IMPALA-13182: Support uploading additional jars
    
    This patch enables adding custom jars from the
    absolute path: /opt/impala/aux-jars to the CLASSPATH.
    
    Steps:
    1. Download the jars into the /opt/impala/aux-jars directory
    2. Restart impala cluster.
    
    Testing:
    * Tested manually: Added jar files in /opt/impala/aux-jars
      before impala start. After starting impala, asserted that
      the new jars were appended to the value of CLASSPATH as
      printed in the impalad logs.
    
    Change-Id: Ica5fa4c0cd1a5c938f331f3a4bba85d4910db90e
    Reviewed-on: http://gerrit.cloudera.org:8080/21556
    Reviewed-by: Impala Public Jenkins <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 docker/daemon_entrypoint.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/docker/daemon_entrypoint.sh b/docker/daemon_entrypoint.sh
index e8d77a2c4..643d680c5 100755
--- a/docker/daemon_entrypoint.sh
+++ b/docker/daemon_entrypoint.sh
@@ -112,6 +112,15 @@ for jar in /opt/impala/lib/*.jar
 do
   CLASSPATH+=:$jar
 done
+
+# Add custom jars
+if [ -d /opt/impala/aux-jars ]; then
+  for jar in /opt/impala/aux-jars/*.jar
+  do
+    CLASSPATH+=:$jar
+  done
+fi
+
 echo "CLASSPATH: $CLASSPATH"
 echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
 

Reply via email to