Skip to content

Commit

Permalink
fix scripts
Browse files Browse the repository at this point in the history
Change-Id: I66928ac1cec624d5af6084bf79dfec448123dbef
  • Loading branch information
Thearas committed Jan 25, 2025
1 parent dc02de3 commit ba61150
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ touch "${lockfile1}"

# wait metastore start
while ! $(nc -z localhost "${HMS_PORT:-9083}"); do
sleep 1s
sleep 5s
done

# create tables for other cases
Expand All @@ -41,7 +41,7 @@ hadoop fs -mkdir -p /user/doris/suites/
DATA_DIR="/mnt/scripts/data/"
find "${DATA_DIR}" -type f -name "run.sh" -print0 | xargs -0 -n 1 -P "${parallel}" -I {} bash -ec '
START_TIME=$(date +%s)
bash -e "{}" || echo "Failed to executing script: {}" && exit 1
bash -e "{}" || (echo "Failed to executing script: {}" && exit 1)
END_TIME=$(date +%s)
EXECUTION_TIME=$((END_TIME - START_TIME))
echo "Script: {} executed in $EXECUTION_TIME seconds"
Expand Down Expand Up @@ -147,7 +147,7 @@ fi
# create tables
ls /mnt/scripts/create_preinstalled_scripts/*.hql | xargs -n 1 -P "${parallel}" -I {} bash -ec '
START_TIME=$(date +%s)
hive -f {} || echo "Failed to executing hql: {}" && exit 1
hive -f {} || (echo "Failed to executing hql: {}" && exit 1)
END_TIME=$(date +%s)
EXECUTION_TIME=$((END_TIME - START_TIME))
echo "Script: {} executed in $EXECUTION_TIME seconds"
Expand Down

0 comments on commit ba61150

Please sign in to comment.