File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export SPARK_HOME="$FWDIR"
2525
2626SCALA_VERSION=2.10
2727
28- if [[ " $@ " == * --help* ]]; then
28+ if [[ " $@ " = * --help ]] || [[ " $@ " = * --h ]]; then
2929 echo " Usage: ./bin/pyspark [options]"
3030 ./bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
3131 exit 0
@@ -79,8 +79,8 @@ export PYSPARK_SUBMIT_ARGS
7979
8080# If a python file is provided, directly run spark-submit.
8181if [[ " $1 " =~ \. py$ ]]; then
82- echo -e " \nWARNING: Running python applications through ./bin/pyspark is deprecated as of Spark 1.0."
83- echo -e " Use ./bin/spark-submit <python file>\n"
82+ echo -e " \nWARNING: Running python applications through ./bin/pyspark is deprecated as of Spark 1.0." 1>&2
83+ echo -e " Use ./bin/spark-submit <python file>\n" 1>&2
8484 exec $FWDIR /bin/spark-submit " $@ "
8585else
8686 # Only use ipython if no command line arguments were provided [SPARK-1134]
Original file line number Diff line number Diff line change 2828# Enter posix mode for bash
2929set -o posix
3030
31- if [[ " $@ " == * --help* ]]; then
31+ if [[ " $@ " = * --help ]] || [[ " $@ " = * --h ]]; then
3232 echo " Usage: ./bin/spark-shell [options]"
3333 ./bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
3434 exit 0
You can’t perform that action at this time.
0 commit comments