Skip to content

Commit

Permalink
Fixed minor issues in spark-sql and start-thriftserver.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Jul 24, 2014
1 parent f975d22 commit b8905ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions bin/spark-sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ set -o posix
# Figure out where Spark is installed
FWDIR="$(cd `dirname $0`/..; pwd)"

if [[ "$@" = *--help ]] || [[ "$@" = *-h ]]; then
echo "Usage: ./sbin/spark-sql [options]"
$FWDIR/bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
exit 0
fi

ASSEMBLY_DIR="$FWDIR/assembly/target/scala-$SCALA_VERSION"

if [ -n "$JAVA_HOME" ]; then
Expand Down
3 changes: 0 additions & 3 deletions sbin/start-thriftserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ esac
# Enter posix mode for bash
set -o posix

## Global script variables
FWDIR="$(cd `dirname $0`/..; pwd)"

if [[ "$@" = *--help ]] || [[ "$@" = *-h ]]; then
echo "Usage: ./sbin/start-thriftserver [options]"
$FWDIR/bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
Expand Down

0 comments on commit b8905ba

Please sign in to comment.