Skip to content

Commit

Permalink
remove 4040 port for notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianhao-Gu committed May 16, 2024
1 parent 6bfee7e commit 7d5e88b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ COPY scripts/entrypoint.sh /opt/
RUN chmod a+x /opt/entrypoint.sh

# Switch back to the original user
USER ${ORI_USER}
#USER ${ORI_USER}

ENTRYPOINT ["/opt/entrypoint.sh"]
7 changes: 4 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,29 @@ services:
spark-worker-1:
image: bitnami/spark:3.5.1
container_name: spark-worker-1
depends_on:
- spark-master
ports:
- "8081:8081"
environment:
- SPARK_MODE=worker
- SPARK_MASTER_URL=spark://spark-master:7077
- SPARK_WORKER_CORES=2
- SPARK_WORKER_MEMORY=1G
- SPARK_WORKER_PORT=8091
- SPARK_WORKER_WEBUI_PORT=8081

spark-worker-2:
image: bitnami/spark:3.5.1
container_name: spark-worker-2
depends_on:
- spark-master
ports:
- "8082:8082"
environment:
- SPARK_MODE=worker
- SPARK_MASTER_URL=spark://spark-master:7077
- SPARK_WORKER_CORES=2
- SPARK_WORKER_MEMORY=1G
- SPARK_WORKER_PORT=8092
- SPARK_WORKER_WEBUI_PORT=8082

spark-test-node:
Expand All @@ -55,7 +57,6 @@ services:
dockerfile: Dockerfile
container_name: spark-notebook
ports:
- "4040:4040"
- "4041:4041"
depends_on:
- spark-master
Expand Down

0 comments on commit 7d5e88b

Please sign in to comment.