Skip to content

Commit

Permalink
Merge branch 'main' into test_space
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqi1129 authored Aug 12, 2024
2 parents a169262 + 528f2e0 commit 1796861
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 22 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/backend-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ jobs:
iceberg/iceberg-rest-server/build/*.log
integration-test/build/*.log
integration-test/build/*.tar
integration-test/build/trino-ci-container-log/hive/*.*
integration-test/build/trino-ci-container-log/hdfs/*.*
integration-test/build/trino-ci-container-log
distribution/package/logs/*.out
distribution/package/logs/*.log
catalogs/**/*.log
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/cron-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ jobs:
iceberg/iceberg-rest-server/build/*.log
integration-test/build/*.log
integration-test/build/*.tar
integration-test/build/trino-ci-container-log/hive/*.*
integration-test/build/trino-ci-container-log/hdfs/*.*
integration-test/build/trino-ci-container-log
distribution/package/logs/*.out
distribution/package/logs/*.log
catalogs/**/*.log
Expand Down
5 changes: 1 addition & 4 deletions integration-test/trino-it/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
# under the License.

#
version: '3.0'
services:

hive:
image: datastrato/gravitino-ci-hive:0.1.12
image: datastrato/gravitino-ci-hive:0.1.13
networks:
- trino-net
container_name: trino-ci-hive
Expand All @@ -30,8 +29,6 @@ services:
entrypoint: /bin/bash /tmp/hive/init.sh
volumes:
- ./init/hive:/tmp/hive
- ../build/trino-ci-container-log/hive:/tmp/root
- ../build/trino-ci-container-log/hdfs:/usr/local/hadoop/logs
healthcheck:
test: ["CMD", "/tmp/check-status.sh"]
interval: 10s
Expand Down
2 changes: 1 addition & 1 deletion integration-test/trino-it/init/hive/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
#

IP=$(hostname -I | awk '{print $1}')
sed -i "s|<value>hdfs://localhost:9000|<value>hdfs://${IP}:9000|g" /usr/local/hive/conf/hive-site.xml
sed -i "s|<value>hdfs://__REPLACE__HOST_NAME:9000|<value>hdfs://${IP}:9000|g" ${HIVE_TMP_CONF_DIR}/hive-site.xml

/bin/bash /usr/local/sbin/start.sh
5 changes: 0 additions & 5 deletions integration-test/trino-it/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,3 @@ done


echo "All docker compose service is now available."

# change the hive container's logs directory permission
docker exec trino-ci-hive chown -R `id -u`:`id -g` /tmp/root
docker exec trino-ci-hive chown -R `id -u`:`id -g` /usr/local/hadoop/logs

11 changes: 3 additions & 8 deletions integration-test/trino-it/shutdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,8 @@
#
cd "$(dirname "$0")"

# change the hive container's logs directory permission
docker exec trino-ci-hive chown -R `id -u`:`id -g` /tmp/root
docker exec trino-ci-hive chown -R `id -u`:`id -g` /usr/local/hadoop/logs

# for trace file permission
ls -l ../build/trino-ci-container-log
ls -l ../build/trino-ci-container-log/hive
ls -l ../build/trino-ci-container-log/hdfs
LOG_DIR=../build/trino-ci-container-log
docker cp trino-ci-hive:/usr/local/hadoop/logs $LOG_DIR/hdfs
docker cp trino-ci-hive:/tmp/root $LOG_DIR/hive

docker compose down

0 comments on commit 1796861

Please sign in to comment.