From aaa649a637faa81639c068d94ce300a68cb7248e Mon Sep 17 00:00:00 2001 From: Pere Miquel Brull Date: Mon, 12 Feb 2024 10:47:49 +0100 Subject: [PATCH] MINOR - OpenMetadata OPS to load collate-service jars first (#15143) --- bootstrap/openmetadata-ops.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bootstrap/openmetadata-ops.sh b/bootstrap/openmetadata-ops.sh index ecb90428446..b6dc0b46305 100755 --- a/bootstrap/openmetadata-ops.sh +++ b/bootstrap/openmetadata-ops.sh @@ -38,6 +38,13 @@ if [ ${debug} ] ; then echo $LIBS_DIR fi if [ -d "${LIBS_DIR}" ]; then + # First, add collate-service jar to the classpath. + # This is required for cases where we override classes from dependencies. + for file in "${LIBS_DIR}"collate-service-*.jar; + do + CLASSPATH="$CLASSPATH":"$file" + done + # Then, add the rest of the libraries for file in "${LIBS_DIR}"*.jar; do CLASSPATH="$CLASSPATH":"$file"