-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-2925] [sql]fix spark-sql and start-thriftserver shell bugs when set --driver-java-options #1851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Can one of the admins verify this patch? |
|
start-thriftserver also has the problem, fixed it |
|
@marmbrus, can you verify this pr? |
|
test this please |
|
/cc @liancheng |
|
QA tests have started for PR 1851. This patch merges cleanly. |
|
QA results for PR 1851: |
|
@scwf Bash escaping is really annoying... Thanks for spotting and fixing this issue! This PR fixed the The root cause here is that variables in these two scripts are not properly quoted. We should quote them to fix all similar cases. Take eval exec "$FWDIR"/bin/spark-submit --class $CLASS ${SUBMISSION_ARGS[*]} spark-internal ${CLI_ARGS[*]}should be exec "$FWDIR"/bin/spark-submit --class $CLASS "${SUBMISSION_ARGS[@]}" spark-internal "${CLI_ARGS[@]}"The same rules applies to |
|
@liancheng, using CLI_ARGS+=("$1") , "${SUBMISSION_ARGS[@]}" and "${CLI_ARGS[@]}" can not fix this issue, i think there are only two options may leads to the problem:
|
|
@liancheng yeah, my mistake , we should also use SUBMISSION_ARGS+=("$1") to instead SUBMISSION_ARGS+=($1) , it will be ok |
|
updated |
|
ok to test |
|
QA tests have started for PR 1851. This patch merges cleanly. |
|
Jenkins, test this please. |
|
QA tests have started for PR 1851. This patch merges cleanly. |
|
@marmbrus, the test failures but it seems error when running PySpark tests. And the jenkins seems not post tests result to Github. Can you suggest for that? |
|
retest this please |
|
QA tests have started for PR 1851. This patch merges cleanly. |
|
Tests passed but failed to post to github. I'm going to merge this to master and 1.1. Thanks! |
…n 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 <[email protected]> Author: wangfei <[email protected]> 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 (cherry picked from commit 267fdff) Signed-off-by: Michael Armbrust <[email protected]>
…n 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 <[email protected]> Author: wangfei <[email protected]> Closes apache#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
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