Skip to content

Commit

Permalink
Unified port number for Docker and Kubernetes.
Browse files Browse the repository at this point in the history
  • Loading branch information
orenccl committed Nov 11, 2024
1 parent eeb23e3 commit 4e8b060
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion healthcheck/mysql-healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
set -ex

HOST_IP=${MYSQL_HOST_IP:-localhost}
mysqladmin ping -h ${HOST_IP} -p${MYSQL_ROOT_PASSWORD}
mysqladmin ping -h ${HOST_IP} -P 13306 -p${MYSQL_ROOT_PASSWORD}
if [ $? -eq 0 ]; then
echo "MySQL container started successfully."
exit 0
Expand Down
2 changes: 1 addition & 1 deletion healthcheck/trino-healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
set -ex

# Because trino-connector must first synchronize a default metalake from the Gravitino server
response=$(trino --server ${TRINO_HOST_IP}:8080 --execute "SHOW CATALOGS LIKE 'catalog_hive'")
response=$(trino --server ${TRINO_HOST_IP}:18080 --execute "SHOW CATALOGS LIKE 'catalog_hive'")
if echo "$response" | grep -q catalog_hive; then
echo "Gravitino Trino connector has finished synchronizing metadata"
else
Expand Down
6 changes: 3 additions & 3 deletions helm-chart/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ kubectl exec $SPARK_POD -n gravitino-playground -it -- /bin/bash
3. Port-forwarding Gravitino Service, so that you can access it at `localhost:8090`.

```
kubectl port-forward svc/gravitino -n gravitino-playground 8090:8090
kubectl port-forward svc/gravitino -n gravitino-playground 8090:8090
```

4. Port-forwarding Jupyter Notebook Service, so that you can access it at `localhost:8888`.
4. Port-forwarding Jupyter Notebook Service, so that you can access it at `localhost:18888`.

```
kubectl port-forward svc/jupyternotebook -n gravitino-playground 8888:8888
kubectl port-forward svc/jupyternotebook -n gravitino-playground 18888:18888
```
8 changes: 4 additions & 4 deletions helm-chart/templates/hive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ spec:
selector:
app: {{ .Values.hive.serviceName }}
ports:
- port: 3306
- port: 3307
targetPort: 3306
name: mysql
- port: 9000
- port: 19000
targetPort: 9000
name: hdfs
- port: 9083
- port: 19083
targetPort: 9083
name: metastore
- port: 10000
targetPort: 10000
name: hiveserver2
- port: 50070
- port: 60070
targetPort: 50070
name: namenode
2 changes: 1 addition & 1 deletion helm-chart/templates/jupyter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ spec:
selector:
app: {{ .Values.jupyter.serviceName }}
ports:
- port: 8888
- port: 18888
targetPort: 8888
2 changes: 1 addition & 1 deletion helm-chart/templates/mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ spec:
selector:
app: {{ .Values.mysql.serviceName }}
ports:
- port: 3306
- port: 13306
targetPort: 3306
2 changes: 1 addition & 1 deletion helm-chart/templates/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ spec:
selector:
app: {{ .Values.postgresql.serviceName }}
ports:
- port: 5432
- port: 15432
targetPort: 5432
2 changes: 1 addition & 1 deletion helm-chart/templates/spark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ spec:
selector:
app: {{ .Values.spark.serviceName }}
ports:
- port: 4040
- port: 14040
targetPort: 4040
2 changes: 1 addition & 1 deletion helm-chart/templates/trino.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ spec:
selector:
app: {{ .Values.trino.serviceName }}
ports:
- port: 8080
- port: 18080
targetPort: 8080
name: http
4 changes: 2 additions & 2 deletions init/gravitino/gravitino.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,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_HOST_IP__:13306/db
gravitino.auxService.iceberg-rest.warehouse = hdfs://__HIVE_HOST_IP__:19000/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

0 comments on commit 4e8b060

Please sign in to comment.