File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ A `debian:jessie` based [Spark](http://spark.apache.org) container. Use it in a
7
7
8
8
To run ` SparkPi ` , run the image with Docker:
9
9
10
- docker run --rm -it gettyimages/spark bin/run-example SparkPi 10
10
+ docker run --rm -it -p 4040:4040 gettyimages/spark bin/run-example SparkPi 10
11
11
12
12
To start ` spark-shell ` with your AWS credentials:
13
13
14
- docker run --rm -it -e "AWS_ACCESS_KEY_ID=YOURKEY" -e "AWS_SECRET_ACCESS_KEY=YOURSECRET" gettyimages/spark bin/spark-shell
14
+ docker run --rm -it -e "AWS_ACCESS_KEY_ID=YOURKEY" -e "AWS_SECRET_ACCESS_KEY=YOURSECRET" -p 4040:4040 gettyimages/spark bin/spark-shell
15
15
16
16
To do a thing with Pyspark
17
17
18
18
echo "import pyspark\nprint(pyspark.SparkContext().parallelize(range(0, 10)).count())" > count.py
19
- docker run --rm -it -v $(pwd)/count.py:/count.py gettyimages/spark bin/pyspark /count.py
19
+ docker run --rm -it -p 4040:4040 - v $(pwd)/count.py:/count.py gettyimages/spark bin/pyspark /count.py
20
20
21
21
## docker-compose example
22
22
You can’t perform that action at this time.
0 commit comments