Fix #1579: Drop and recreate MySQL and ES (#1589)

This commit is contained in:
Alberto Miorin 2021-12-06 23:28:35 +01:00 committed by GitHub
parent 3cc892769a
commit 4d20e187a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
bootstrap/bootstrap_storage.sh Normal file → Executable file
View File

@ -35,11 +35,15 @@ else
fi
TABLE_INITIALIZER_MAIN_CLASS=org.openmetadata.catalog.util.TablesInitializer
for file in "${BOOTSTRAP_DIR}"/../libs/*.jar;
do
CLASSPATH="$CLASSPATH":"$file"
done
LIBS_DIR="${BOOTSTRAP_DIR}"/../libs/
if [ -d "${LIBS_DIR}" ]; then
for file in "${LIB_DIR}"*.jar;
do
CLASSPATH="$CLASSPATH":"$file"
done
else
CLASSPATH=`mvn -pl catalog-rest-service -q exec:exec -Dexec.executable=echo -Dexec.args="%classpath"`
fi
execute() {
echo "Using Configuration file: ${CONFIG_FILE_PATH}"