You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2021/07/13 10:22:08 UTC

[atlas] branch branch-2.0 updated: ATLAS-4354: atlas import-hive.sh fails with java.lang.AbstractMethodError

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

nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 32e1147  ATLAS-4354: atlas import-hive.sh fails with java.lang.AbstractMethodError
32e1147 is described below

commit 32e11478f8cbedf1800e27b286519af6250a2e59
Author: Radhika Kundam <rk...@cloudera.com>
AuthorDate: Mon Jul 12 22:11:14 2021 -0700

    ATLAS-4354: atlas import-hive.sh fails with java.lang.AbstractMethodError
    
    Signed-off-by: nixonrodrigues <ni...@apache.org>
    (cherry picked from commit c1dc84cdeeb1b5c3a53f2bec01ae138e5f578dd1)
---
 addons/hive-bridge/src/bin/import-hive.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/addons/hive-bridge/src/bin/import-hive.sh b/addons/hive-bridge/src/bin/import-hive.sh
index 405497b..693a79b 100755
--- a/addons/hive-bridge/src/bin/import-hive.sh
+++ b/addons/hive-bridge/src/bin/import-hive.sh
@@ -91,8 +91,11 @@ if [ -z "$HIVE_HOME" ]; then
 fi
 
 HIVE_CP="${HIVE_CONF}"
+# Multiple jars in HIVE_CP_EXCLUDE_LIST can be added using "\|" separator
+# Ex: HIVE_CP_EXCLUDE_LIST="javax.ws.rs-api\|jersey-multipart"
+HIVE_CP_EXCLUDE_LIST="javax.ws.rs-api"
 
-for i in "${HIVE_HOME}/lib/"*.jar; do
+for i in $(find "${HIVE_HOME}/lib/" -name  "*.jar" | grep -v "$HIVE_CP_EXCLUDE_LIST"); do
     HIVE_CP="${HIVE_CP}:$i"
 done