[SPARK-4871][SQL] Show sql statement in spark ui when run sql with spark-sql#3718
[SPARK-4871][SQL] Show sql statement in spark ui when run sql with spark-sql#3718scwf wants to merge 5 commits intoapache:masterfrom
Conversation
|
Test build #24531 has started for PR 3718 at commit
|
|
Test build #24531 has finished for PR 3718 at commit
|
|
Test FAILed. |
|
retest this please. |
|
Test build #24532 has started for PR 3718 at commit
|
|
Test build #24532 has finished for PR 3718 at commit
|
|
Test FAILed. |
|
retest this please. |
|
Test build #24539 has started for PR 3718 at commit
|
|
Test build #24539 has finished for PR 3718 at commit
|
|
Test FAILed. |
|
Test build #24540 has started for PR 3718 at commit
|
|
Test build #24540 has finished for PR 3718 at commit
|
|
Test PASSed. |
There was a problem hiding this comment.
Or to use setLocalProperty(SparkContext.SPARK_JOB_DESCRIPTION, description) ?setJobDescription essentially calls it.
|
Test build #24570 has started for PR 3718 at commit
|
|
Test build #24570 has finished for PR 3718 at commit
|
|
Test FAILed. |
|
Retest this please. |
|
Test build #24580 has started for PR 3718 at commit
|
|
Test build #24580 has finished for PR 3718 at commit
|
|
Test PASSed. |
|
Updated |
|
Test build #24625 has started for PR 3718 at commit
|
|
Test build #24625 has finished for PR 3718 at commit
|
|
Test PASSed. |
|
@marmbrus, is this ok to go? |
|
LGTM - but are we sure we don't want to set the job group id? We can use that to cancel running commands. |
|
i think this is ok. Even if we set the job group id, we can not use the cancel api to cancel job in spark-sql or beeline. |
|
In principle I agree with @rxin. We probably should be setting the job group id and saving it so that if the users presses ctrl-c (or calls |
|
One other thought: how does this handle really long queries, or ones with a lots of new lines? Does it mess up the UI? Do we need to truncate the statement? Can you post a screen shot? |
|
That wrapping in the UI is barely tolerable for what are still fairly modest-length queries. We're really going to need some kind of elided query in the main Jobs table with a link or pop-up containing the full, pretty-printed query. |
|
Ok, i will add a pop-up containing the full |
|
@marmbrus Maybe I missed something here, but why do we prefer @scwf For job cancellation/stopping, under which shell did you try Would like to add that there is a known job description issue related to CTAS statements, see SPARK-2472. This PR shares exactly the same issue. Main point of SPARK-2472 quoted below:
|
|
It's not deprecated for any good reason and I think we should undeprecate it. I'm not opposed to setting the job group, but I am opposed to setting it to a random value and then throwing that away. That seems to have no point, and would override a value that might have been set for some reason elsewhere. |
|
I see. Yes, a random group ID string is not intuitive nor useful. And just realize another reason that we shouldn't set group ID in |
|
Filed a PR to add pop-up for full job description #3819 |
|
@marmbrus, can this go since i have filed a PR to add pop-up for full job desc? |
|
This LGTM. |
|
ping @marmbrus |
|
Thanks, merged to master |
…cription when it is very long In some case the job description will be very long, such as a long sql. refer to #3718 This PR add a pop-up for job description when it is long.   Author: wangfei <wangfei1@huawei.com> Closes #3819 from scwf/popup-descrip-ui and squashes the following commits: ba02b83 [wangfei] address comments a7c5e7b [wangfei] spot that it's been truncated fbf6162 [wangfei] Merge branch 'master' into popup-descrip-ui 0bca96d [wangfei] remove no use val 4b55c3b [wangfei] fix style issue 353c6f4 [wangfei] pop up the description of job with a styled read-only text form field
…cription when it is very long In some case the job description will be very long, such as a long sql. refer to apache#3718 This PR add a pop-up for job description when it is long.   Author: wangfei <wangfei1@huawei.com> Closes apache#3819 from scwf/popup-descrip-ui and squashes the following commits: ba02b83 [wangfei] address comments a7c5e7b [wangfei] spot that it's been truncated fbf6162 [wangfei] Merge branch 'master' into popup-descrip-ui 0bca96d [wangfei] remove no use val 4b55c3b [wangfei] fix style issue 353c6f4 [wangfei] pop up the description of job with a styled read-only text form field

No description provided.