This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 52cae3b7cd2 [fix](regression-test) add checks for existence and
successful upload of data files in hive-metastore.sh #43853 (#43924)
52cae3b7cd2 is described below
commit 52cae3b7cd2893820491ff11b636f1ac3a57b262
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Thu Nov 14 16:11:14 2024 +0800
[fix](regression-test) add checks for existence and successful upload of
data files in hive-metastore.sh #43853 (#43924)
cherry pick from #43853
Co-authored-by: Socrates <[email protected]>
---
.../docker-compose/hive/scripts/hive-metastore.sh | 24 ++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/docker/thirdparties/docker-compose/hive/scripts/hive-metastore.sh
b/docker/thirdparties/docker-compose/hive/scripts/hive-metastore.sh
index 7b92e14975b..e8b511b4682 100755
--- a/docker/thirdparties/docker-compose/hive/scripts/hive-metastore.sh
+++ b/docker/thirdparties/docker-compose/hive/scripts/hive-metastore.sh
@@ -93,14 +93,38 @@ rm -f "$lockfile2"
# put data file
## put tpch1
+if [ -z "$(ls /mnt/scripts/tpch1.db)" ]; then
+ echo "tpch1.db does not exist"
+ exit 1
+fi
hadoop fs -mkdir -p /user/doris/
hadoop fs -put /mnt/scripts/tpch1.db /user/doris/
+if [ -z "$(hadoop fs -ls /user/doris/tpch1.db)" ]; then
+ echo "tpch1.db put failed"
+ exit 1
+fi
## put paimon1
+if [ -z "$(ls /mnt/scripts/paimon1)" ]; then
+ echo "paimon1 does not exist"
+ exit 1
+fi
hadoop fs -put /mnt/scripts/paimon1 /user/doris/
+if [ -z "$(hadoop fs -ls /user/doris/paimon1)" ]; then
+ echo "paimon1 put failed"
+ exit 1
+fi
## put tvf_data
+if [ -z "$(ls /mnt/scripts/tvf_data)" ]; then
+ echo "tvf_data does not exist"
+ exit 1
+fi
hadoop fs -put /mnt/scripts/tvf_data /user/doris/
+if [ -z "$(hadoop fs -ls /user/doris/tvf_data)" ]; then
+ echo "tvf_data put failed"
+ exit 1
+fi
## put other preinstalled data
hadoop fs -put /mnt/scripts/preinstalled_data /user/doris/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]