Uh oh!
There was an error while loading. Please reload this page.
[SPARK-29724][SPARK-29726][WEBUI][SQL] Support JDBC/ODBC tab for HistoryServer WebUI - #26378
[SPARK-29724][SPARK-29726][WEBUI][SQL] Support JDBC/ODBC tab for HistoryServer WebUI#26378shahidki31 wants to merge 30 commits into
Conversation
SparkQA
commented
Nov 3, 2019
Test build #113164 has finished for PR 26378 at commit
|
SparkQA
commented
Nov 3, 2019
Test build #113165 has finished for PR 26378 at commit
|
dfd1ff6 to
7015ac6CompareSparkQA
commented
Nov 3, 2019
Test build #113170 has finished for PR 26378 at commit
|
SparkQA
commented
Nov 3, 2019
Test build #113166 has finished for PR 26378 at commit
|
5490c8e to
24dde37CompareSparkQA
commented
Nov 3, 2019
Test build #113171 has finished for PR 26378 at commit
|
24dde37 to
905e635Compareshahidki31
commented
Nov 3, 2019
retest this please |
SparkQA
commented
Nov 3, 2019
Test build #113172 has finished for PR 26378 at commit
|
905e635 to
4eab137CompareSparkQA
commented
Nov 3, 2019
Test build #113173 has finished for PR 26378 at commit
|
shahidki31
commented
Nov 4, 2019
retest this please |
SparkQA
commented
Nov 4, 2019
Test build #113204 has finished for PR 26378 at commit
|
Jenkins, retest this please |
shahidki31
commented
Nov 4, 2019
Retest this please |
841f8a5 to
540faf0Compare
shahidki31
left a comment
There was a problem hiding this comment.
cc @vanzin , @cloud-fan , @wangym , @srowen , @AngersZhuuuu
Kindly review
| } | ||
| private[thriftserver] class SessionInfo( | ||
| val sessionId: String, |
There was a problem hiding this comment.
The code here and below are moved to HiveThriftServer2Listener.scala class
| * An inner sparkListener called in sc.stop to clean up the HiveThriftServer2 | ||
| */ | ||
| private[thriftserver] class HiveThriftServer2Listener( | ||
| val server: HiveServer2, |
There was a problem hiding this comment.
Moved to a separate file (HiveThriftserver2Listener.scala)
| ip: String, | ||
| sessionId: String, | ||
| userName: String, | ||
| startTime: Long) extends SparkListenerEvent |
There was a problem hiding this comment.
New events added for Thriftserver applications. Eventually these events will be catch by the listeners EventLoggingListner as well as HiveThriftServer2Listener`
| cleanup(OperationState.CLOSED) | ||
| HiveThriftServer2.listener.onOperationClosed(statementId) | ||
| HiveThriftServer2.listener.postLiveListenerBus(SparkListenerOperationClosed(statementId, | ||
| System.currentTimeMillis())) |
There was a problem hiding this comment.
Changes here are below files are,
- posting the Thriftserver specific events to LiveListener Bus, so that it can get by both EvenLoggingListener (For HistoryServer) as well as HiveThriftServer2Listener (For live UI)
| class HiveThriftServer2AppStatusStore( | ||
| store: KVStore, | ||
| val listener: Option[HiveThriftServer2Listener] = None) { | ||
There was a problem hiding this comment.
Both Live and History UI will read from this store for populating the WEBUI
SparkQA
commented
Nov 4, 2019
Test build #113216 has finished for PR 26378 at commit
|
SparkQA
commented
Nov 4, 2019
Test build #113217 has finished for PR 26378 at commit
|
540faf0 to
e965c5fCompareshahidki31
commented
Nov 4, 2019
retest this please |
SparkQA
commented
Nov 4, 2019
Test build #113224 has finished for PR 26378 at commit
|
shahidki31
commented
Nov 4, 2019
Not sure which test is failing. seems all UTs are passing as per the Jenkins report. |
SparkQA
commented
Nov 4, 2019
Test build #113225 has finished for PR 26378 at commit
|
SparkQA
commented
Nov 5, 2019
Test build #113284 has finished for PR 26378 at commit
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Nov 27, 2019
Test build #114497 has finished for PR 26378 at commit
|
SparkQA
commented
Nov 27, 2019
Test build #114492 has finished for PR 26378 at commit
|
SparkQA
commented
Nov 27, 2019
Test build #114495 has finished for PR 26378 at commit
|
juliuszsompolski
left a comment
There was a problem hiding this comment.
LGTM pending scalastyle.
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Nov 27, 2019
Test build #114538 has finished for PR 26378 at commit
|
gengliangwang
left a comment
There was a problem hiding this comment.
LGTM, thanks for the work!
gengliangwang
commented
Nov 28, 2019
@shahidki31 one more comment, I have a good idea about fixing the UI tab order. I will merge this one once this is updated. |
shahidki31
commented
Nov 28, 2019
Yeah, that is a nice idea. Thanks @gengliangwang . I will update the code |
SparkQA
commented
Nov 28, 2019
Test build #114558 has finished for PR 26378 at commit
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Nov 28, 2019
Test build #114569 has finished for PR 26378 at commit
|
shahidki31
commented
Nov 29, 2019
retest this please |
SparkQA
commented
Nov 29, 2019
Test build #114603 has finished for PR 26378 at commit
|
shahidki31
commented
Nov 29, 2019
retest this please |
SparkQA
commented
Nov 29, 2019
Test build #114625 has finished for PR 26378 at commit
|
gengliangwang
commented
Nov 30, 2019
Thanks, merging to master |
shahidki31
commented
Nov 30, 2019
Thanks a lot @gengliangwang@juliuszsompolski@AngersZhuuuu for the reviews |
…oryServer WebUI ### What changes were proposed in this pull request? Support JDBC/ODBC tab for HistoryServer WebUI. Currently from Historyserver we can't access the JDBC/ODBC tab for thrift server applications. In this PR, I am doing 2 main changes 1. Refactor existing thrift server listener to support kvstore 2. Add history server plugin for thrift server listener and tab. ### Why are the changes needed? Users can access Thriftserver tab from History server for both running and finished applications, ### Does this PR introduce any user-facing change? Support for JDBC/ODBC tab for the WEBUI from History server ### How was this patch tested? Add UT and Manual tests 1. Start Thriftserver and Historyserver ``` sbin/stop-thriftserver.sh sbin/stop-historyserver.sh sbin/start-thriftserver.sh sbin/start-historyserver.sh ``` 2. Launch beeline `bin/beeline -u jdbc:hive2://localhost:10000` 3. Run queries Go to the JDBC/ODBC page of the WebUI from History server  Closesapache#26378 from shahidki31/ThriftKVStore. Authored-by: shahid <shahidki31@gmail.com> Signed-off-by: Gengliang Wang <gengliang.wang@databricks.com>
What changes were proposed in this pull request?
Support JDBC/ODBC tab for HistoryServer WebUI. Currently from Historyserver we can't access the JDBC/ODBC tab for thrift server applications. In this PR, I am doing 2 main changes
Why are the changes needed?
Users can access Thriftserver tab from History server for both running and finished applications,
Does this PR introduce any user-facing change?
Support for JDBC/ODBC tab for the WEBUI from History server
How was this patch tested?
Add UT and Manual tests
Launch beeline
bin/beeline -u jdbc:hive2://localhost:10000Run queries
Go to the JDBC/ODBC page of the WebUI from History server