We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfcf461 commit 9cc0f06Copy full SHA for 9cc0f06
bin/beeline
@@ -20,26 +20,5 @@
20
# Figure out where Spark is installed
21
FWDIR="$(cd `dirname $0`/..; pwd)"
22
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
40
41
- CLASSPATH=$classpath_output
42
43
44
CLASS="org.apache.hive.beeline.BeeLine"
45
-exec "$RUNNER" -cp "$CLASSPATH" $CLASS "$@"
+exec "$FWDIR"/bin/spark-submit --class $CLASS spark-internal "$@"
0 commit comments