Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update --help for bin/pyspark
  • Loading branch information
andrewor14 committed May 16, 2014
commit fe4c8a74e21db08ec9a0111cf7f82e7cc62e3ccb
6 changes: 6 additions & 0 deletions bin/pyspark
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export SPARK_HOME="$FWDIR"

SCALA_VERSION=2.10

if [[ "$@" == *--help* ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this recognize -h also

echo "Usage: ./bin/pyspark [python file] [options]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to deprecate submitting a Python file with this, drop the [python file]

./bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
exit 0
fi

# Exit if the user hasn't compiled Spark
if [ ! -f "$FWDIR/RELEASE" ]; then
# Exit if the user hasn't compiled Spark
Expand Down