diff --git a/bin/beeline b/bin/beeline index 09fe366c609fa..08301d55010c5 100755 --- a/bin/beeline +++ b/bin/beeline @@ -20,26 +20,5 @@ # Figure out where Spark is installed FWDIR="$(cd `dirname $0`/..; pwd)" -# Find the java binary -if [ -n "${JAVA_HOME}" ]; then - RUNNER="${JAVA_HOME}/bin/java" -else - if [ `command -v java` ]; then - RUNNER="java" - else - echo "JAVA_HOME is not set" >&2 - exit 1 - fi -fi - -# Compute classpath using external script -classpath_output=$($FWDIR/bin/compute-classpath.sh) -if [[ "$?" != "0" ]]; then - echo "$classpath_output" - exit 1 -else - CLASSPATH=$classpath_output -fi - CLASS="org.apache.hive.beeline.BeeLine" -exec "$RUNNER" -cp "$CLASSPATH" $CLASS "$@" +exec "$FWDIR"/bin/spark-submit --class $CLASS spark-internal "$@"