Skip to content

Commit b7ba0d8

Browse files
committed
Address a few comments (minor)
1 parent 06eb138 commit b7ba0d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/pyspark

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export SPARK_HOME="$FWDIR"
2525

2626
SCALA_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.
8181
if [[ "$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 "$@"
8585
else
8686
# Only use ipython if no command line arguments were provided [SPARK-1134]

bin/spark-shell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ esac
2828
# Enter posix mode for bash
2929
set -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

0 commit comments

Comments
 (0)