Created
October 4, 2016 14:03
-
-
Save nustiueudinastea/f1060bce488087bc375d05d8b4c8376d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
mast: | |
image: seqvence/spark-master | |
command: /bin/bash -c "sleep 10 && bin/spark-class org.apache.spark.deploy.master.Master -h mast" | |
hostname: mast | |
environment: | |
MASTER: spark://mast:7077 | |
SPARK_CONF_DIR: /conf | |
SPARK_PUBLIC_DNS: localhost | |
size: "m1" | |
ports: | |
- 4040:4040 | |
- 6066:6066 | |
- 7077:7077 | |
- 8080:8080 | |
- 7001:7001 | |
- 7002:7002 | |
- 7003:7003 | |
- 7004:7004 | |
- 7005:7005 | |
- 7006:7006 | |
work: | |
image: seqvence/spark-worker | |
command: /bin/bash -c "sleep 60 && bin/spark-class org.apache.spark.deploy.worker.Worker spark://mast:7077" | |
hostname: work | |
depends_on: | |
- mast | |
environment: | |
SPARK_CONF_DIR: /conf | |
SPARK_WORKER_CORES: 2 | |
SPARK_WORKER_MEMORY: 512m | |
SPARK_WORKER_PORT: 8881 | |
SPARK_WORKER_WEBUI_PORT: 8081 | |
SPARK_PUBLIC_DNS: localhost | |
size: "m1" | |
ports: | |
- 8081:8081 | |
- 7012:7012 | |
- 7013:7013 | |
- 7014:7014 | |
- 7015:7015 | |
- 7016:7016 | |
jupyterbook: | |
image: seqvence/jupyter-pyspark | |
fip: <public fip IP> | |
hostname: jupyter | |
environment: | |
SPARK_MASTER: mast | |
size: M1 | |
ports: | |
- 8888:8888 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment