Skip to content

Commit

Permalink
Merge pull request gettyimages#35 from stenote/patch-1
Browse files Browse the repository at this point in the history
use `echo -e` to make `\n` works
  • Loading branch information
bryceageno authored Jun 13, 2018
2 parents 473346e + 93fad87 commit f3451e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To start `spark-shell` with your AWS credentials:

To do a thing with Pyspark

echo "import pyspark\nprint(pyspark.SparkContext().parallelize(range(0, 10)).count())" > count.py
echo -e "import pyspark\n\nprint(pyspark.SparkContext().parallelize(range(0, 10)).count())" > count.py
docker run --rm -it -p 4040:4040 -v $(pwd)/count.py:/count.py gettyimages/spark bin/spark-submit /count.py

## docker-compose example
Expand Down

0 comments on commit f3451e8

Please sign in to comment.