Skip to content

Commit

Permalink
Update pr_tests_spark.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ilias1111 committed Aug 6, 2024
1 parent db55258 commit cdc6314
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/pr_tests_spark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,17 @@ jobs:
- name: Check running containers
run: docker ps

- name: Initialize Hive Metastore
- name: Initialize Metastore
run: |
docker-compose exec -T spark-master bash -c "
schematool -dbType derby -initSchema
"
- name: Check Metastore Status
run: |
docker-compose exec -T spark-master bash -c "
schematool -dbType derby -info
"
echo "Initializing metastore..."
docker-compose exec -T spark-master bash -c '
spark-sql --conf spark.sql.hive.metastore.version=2.3.9 \
--conf spark.sql.hive.metastore.jars=builtin \
--conf spark.sql.warehouse.dir=/spark/spark-warehouse \
--conf javax.jdo.option.ConnectionURL="jdbc:derby:;databaseName=/spark/metastore_db;create=true" \
-e "CREATE DATABASE IF NOT EXISTS default;"
'
echo "Metastore initialization completed."
- name: Debug Spark Warehouse
run: |
Expand Down Expand Up @@ -277,10 +277,11 @@ jobs:
run: |
echo "Verifying Hive metastore..."
docker-compose exec -T spark-master bash -c '
spark-sql --conf spark.sql.hive.metastore.jars=builtin \
--conf spark.sql.hive.metastore.version=2.3.9 \
--conf spark.sql.catalogImplementation=hive \
-e "show databases;"
spark-sql --conf spark.sql.hive.metastore.version=2.3.9 \
--conf spark.sql.hive.metastore.jars=builtin \
--conf spark.sql.warehouse.dir=/spark/spark-warehouse \
--conf javax.jdo.option.ConnectionURL="jdbc:derby:;databaseName=/spark/metastore_db;create=true" \
-e "SHOW DATABASES;"
'
- name: Check ThriftServer UI
Expand Down

0 comments on commit cdc6314

Please sign in to comment.