aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorwangfei <wangfei_hello@126.com>2014-08-14 10:55:51 -0700
committerMichael Armbrust <michael@databricks.com>2014-08-14 10:55:51 -0700
commit267fdffe2743bc2dc706c8ac8af0ae33a358a5d3 (patch)
tree641e746dbd4adfbd96f68e04522d5dc611616a7a /sbin
parentfde692b361773110c262abe219e7c8128bd76419 (diff)
downloadspark-267fdffe2743bc2dc706c8ac8af0ae33a358a5d3.tar.gz
spark-267fdffe2743bc2dc706c8ac8af0ae33a358a5d3.tar.bz2
spark-267fdffe2743bc2dc706c8ac8af0ae33a358a5d3.zip
[SPARK-2925] [sql]fix spark-sql and start-thriftserver shell bugs when set --driver-java-options
https://issues.apache.org/jira/browse/SPARK-2925 Run cmd like this will get the error bin/spark-sql --driver-java-options '-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8788,server=y,suspend=y' Error: Unrecognized option '-Xnoagent'. Run with --help for usage help or --verbose for debug output Author: wangfei <wangfei_hello@126.com> Author: wangfei <wangfei1@huawei.com> Closes #1851 from scwf/patch-2 and squashes the following commits: 516554d [wangfei] quote variables to fix this issue 8bd40f2 [wangfei] quote variables to fix this problem e6d79e3 [wangfei] fix start-thriftserver bug when set driver-java-options 948395d [wangfei] fix spark-sql error when set --driver-java-options
Diffstat (limited to 'sbin')
-rwxr-xr-xsbin/start-thriftserver.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/start-thriftserver.sh b/sbin/start-thriftserver.sh
index 603f50ae13..2c4452473c 100755
--- a/sbin/start-thriftserver.sh
+++ b/sbin/start-thriftserver.sh
@@ -65,14 +65,14 @@ while (($#)); do
case $1 in
--hiveconf)
ensure_arg_number $# 2
- THRIFT_SERVER_ARGS+=($1); shift
- THRIFT_SERVER_ARGS+=($1); shift
+ THRIFT_SERVER_ARGS+=("$1"); shift
+ THRIFT_SERVER_ARGS+=("$1"); shift
;;
*)
- SUBMISSION_ARGS+=($1); shift
+ SUBMISSION_ARGS+=("$1"); shift
;;
esac
done
-eval exec "$FWDIR"/bin/spark-submit --class $CLASS ${SUBMISSION_ARGS[*]} spark-internal ${THRIFT_SERVER_ARGS[*]}
+exec "$FWDIR"/bin/spark-submit --class $CLASS "${SUBMISSION_ARGS[@]}" spark-internal "${THRIFT_SERVER_ARGS[@]}"