Skip to content

Commit ee66475

Browse files
committed
Merge pull request gettyimages#3 from jhalterman/masterenv
Set master node as an environment variable
2 parents ff030d9 + 54efda2 commit ee66475

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ To create a standalone cluster with [docker-compose](http://docs.docker.com/comp
1212
The SparkUI will be running at `http://${YOUR_DOCKER_HOST}:8080` with one worker listed. To run `spark-shell`, exec into a container:
1313

1414
docker exec -it dockerspark_master_1 /bin/bash
15-
/usr/spark/bin/spark-shell --master spark://master:7077
15+
/usr/spark/bin/spark-shell
1616

1717
To run `SparkPi`, exec into a container:
1818

1919
docker exec -it dockerspark_master_1 /bin/bash
20-
MASTER=spark://master:7077 /usr/spark/bin/run-example SparkPi 10
20+
/usr/spark/bin/run-example SparkPi 10
2121

2222
## license
2323

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ master:
44
hostname: master
55
environment:
66
SPARK_CONF_DIR: /conf
7+
MASTER: spark://master:7077
78
expose:
89
- 7001
910
- 7002

0 commit comments

Comments
 (0)