curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
docker pull singularities/spark
vi docker-compose.yaml
version: "2" services: master: image: singularities/spark command: start-spark master hostname: master ports: - "6066:6066" - "7070:7070" - "8080:8080" - "50070:50070" worker: image: singularities/spark command: start-spark worker master environment: SPARK_WORKER_CORES: 1 SPARK_WORKER_MEMORY: 2g links: - master
#进入到docker-compose.yaml文件目录下
docker-compose up -d
完成!
http://10.9.31.81:50070/
http://10.9.31.81:8080/
标签:compose,8080,singularities,master,docker,安装,spark From: https://www.cnblogs.com/databank/p/17464193.html