Skip to content

Commit 9cc0f06

Browse files
committed
Starts beeline with spark-submit
1 parent cfcf461 commit 9cc0f06

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

bin/beeline

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,5 @@
2020
# Figure out where Spark is installed
2121
FWDIR="$(cd `dirname $0`/..; pwd)"
2222

23-
# Find the java binary
24-
if [ -n "${JAVA_HOME}" ]; then
25-
RUNNER="${JAVA_HOME}/bin/java"
26-
else
27-
if [ `command -v java` ]; then
28-
RUNNER="java"
29-
else
30-
echo "JAVA_HOME is not set" >&2
31-
exit 1
32-
fi
33-
fi
34-
35-
# Compute classpath using external script
36-
classpath_output=$($FWDIR/bin/compute-classpath.sh)
37-
if [[ "$?" != "0" ]]; then
38-
echo "$classpath_output"
39-
exit 1
40-
else
41-
CLASSPATH=$classpath_output
42-
fi
43-
4423
CLASS="org.apache.hive.beeline.BeeLine"
45-
exec "$RUNNER" -cp "$CLASSPATH" $CLASS "$@"
24+
exec "$FWDIR"/bin/spark-submit --class $CLASS spark-internal "$@"

0 commit comments

Comments
 (0)