Skip to content

Commit

Permalink
refactor(init/gravitino/gravitino.conf): hard code docker service name
Browse files Browse the repository at this point in the history
  • Loading branch information
unknowntpo committed Dec 5, 2024
1 parent af41f3f commit 59e18da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ services:
- "8090:8090"
- "9001:9001"
container_name: playground-gravitino
environment:
- MYSQL_HOST_IP=mysql
- HIVE_HOST_IP=hive
depends_on:
ranger :
condition: service_healthy
Expand Down
4 changes: 2 additions & 2 deletions init/gravitino/gravitino.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ gravitino.auxService.iceberg-rest.host = 0.0.0.0
# Iceberg REST service http port
gravitino.auxService.iceberg-rest.httpPort = 9001
gravitino.auxService.iceberg-rest.catalog-backend = jdbc
gravitino.auxService.iceberg-rest.uri = jdbc:mysql://__MYSQL_HOST_IP__:3306/db
gravitino.auxService.iceberg-rest.warehouse = hdfs://__HIVE_HOST_IP__:9000/user/iceberg/warehouse/
gravitino.auxService.iceberg-rest.uri = jdbc:mysql://mysql:3306/db
gravitino.auxService.iceberg-rest.warehouse = hdfs://hive:9000/user/iceberg/warehouse/
gravitino.auxService.iceberg-rest.jdbc.user = mysql
gravitino.auxService.iceberg-rest.jdbc.password = mysql
gravitino.auxService.iceberg-rest.jdbc-driver = com.mysql.cj.jdbc.Driver
3 changes: 0 additions & 3 deletions init/gravitino/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ cp /root/gravitino/catalogs/jdbc-postgresql/libs/postgresql-42.2.7.jar /root/gra
cp /root/gravitino/catalogs/jdbc-mysql/libs/mysql-connector-java-8.0.27.jar /root/gravitino/iceberg-rest-server/libs
cp /tmp/gravitino/gravitino.conf /root/gravitino/conf

# set env var
sed -i 's/__MYSQL_HOST_IP__/'"$MYSQL_HOST_IP"'/g' /root/gravitino/conf/gravitino.conf
sed -i 's/__HIVE_HOST_IP__/'"$HIVE_HOST_IP"'/g' /root/gravitino/conf/gravitino.conf
echo "Finish downloading"
echo "Start the Gravitino Server"
/bin/bash /root/gravitino/bin/gravitino.sh start &
Expand Down

0 comments on commit 59e18da

Please sign in to comment.