You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ $?-ne 0 ];thenecho"Will initialize the DB";${BASEDIR}/apache-hive-metastore-${METASTORE_VERSION}-bin/bin/schematool -initSchema -dbType ${DB_DRIVER_NAME};fi
@@ -211,7 +239,7 @@ fi
211
239
212
240
echo"Will wait for database schema to be ready...."
213
241
if [ "$DB_DRIVER_NAME"="mysql" ];then
214
-
while! mysql --host=${DB_HOST} --port=${DB_PORT} -u ${HIVEMS_USER} -p${HIVEMS_PASSWORD} -D ${HIVEMS_DB} -e 'SELECT "SCHEMA_VERSION" FROM "VERSION"'>/dev/null 2>&1;doecho"Waiting for ${HIVEMS_DB} schema to be ready..."; sleep 2;done;
242
+
while! mysql --host=${DB_HOST} --port=${DB_PORT} -u ${HIVEMS_USER} -p${HIVEMS_PASSWORD} -D ${HIVEMS_DB} -e "SELECT "SCHEMA_VERSION" FROM "VERSION"">/dev/null 2>&1;doecho"Waiting for ${HIVEMS_DB} schema to be ready..."; sleep 2;done;
215
243
else
216
244
while! psql --host=${DB_HOST} --port=${DB_PORT} -U ${HIVEMS_USER} -d ${HIVEMS_DB} -c 'SELECT "SCHEMA_VERSION" FROM "VERSION"'>/dev/null 2>&1;doecho"Waiting for ${HIVEMS_DB} schema to be ready..."; sleep 2;done;
0 commit comments