Skip to content

Conversation

@tianyi
Copy link
Contributor

@tianyi tianyi commented Apr 28, 2015

This PR is a rebased version of #3946 , and mainly focused on creating an independent tab for the thrift server in spark web UI.

Features:

  1. Session related statistics ( username and IP are only supported in hive-0.13.1 )
  2. List all the SQL executing or executed on this server
  3. Provide links to the job generated by SQL
  4. Provide link to show all SQL executing or executed in a specified session

Prototype snapshots:

This is the main page for thrift server

image

@tianyi tianyi changed the title add webui for thriftserver [SPARK-5100][SQL]add webui for thriftserver Apr 28, 2015
@SparkQA
Copy link

SparkQA commented Apr 28, 2015

Test build #31097 has started for PR 5730 at commit 9830199.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totalExecution?

@SparkQA
Copy link

SparkQA commented Apr 28, 2015

Test build #31097 has finished for PR 5730 at commit 9830199.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class HiveThriftServer2Listener(
  • This patch does not change any dependencies.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Append () to the method name since it causes side effect.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@WangTaoTheTonic
Copy link
Contributor

Sorry for not following the previous comments but could you tell the difference between this tab and Thrift Server's driver UI?
Once this is added, will Thrift Server's Driver UI still be reserved?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe onStatementCompiled? Also, executePlan should be executionPlan.

@tianyi
Copy link
Contributor Author

tianyi commented Apr 28, 2015

@WangTaoTheTonic , the Thrift Server's driver UI you mentioned is a universal UI for all kinds of work on spark, and mainly focus on jobs, stages and tasks.
In this PR, we provide a new tab that focus on users, sessions and SQL.
So the driver UI won't be replaced since they are entirely different.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import order is wrong here.

@liancheng
Copy link
Contributor

This generally looks good, left some comments, most are about styling issues.

@JoshRosen Would you mind to double check the web UI changes? This should be generally the same as #3946. Thanks! @tianyi will add Selenium based test cases later.

@SparkQA
Copy link

SparkQA commented Apr 28, 2015

Test build #31128 has started for PR 5730 at commit c9df6f9.

@tianyi
Copy link
Contributor Author

tianyi commented Apr 28, 2015

@JoshRosen I just add some tests for thrift server UI. But I'm not sure if I need to add test cases for all the feature. Any suggestion?

@SparkQA
Copy link

SparkQA commented Apr 28, 2015

Test build #31129 has started for PR 5730 at commit 8809157.

@SparkQA
Copy link

SparkQA commented Apr 28, 2015

Test build #31128 has finished for PR 5730 at commit c9df6f9.

  • This patch fails RAT tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@SparkQA
Copy link

SparkQA commented Apr 28, 2015

Test build #31129 has finished for PR 5730 at commit 8809157.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@SparkQA
Copy link

SparkQA commented Apr 28, 2015

Test build #31132 has started for PR 5730 at commit aa20408.

@SparkQA
Copy link

SparkQA commented Apr 28, 2015

Test build #31132 has finished for PR 5730 at commit aa20408.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented Apr 29, 2015

Test build #31254 has started for PR 5730 at commit 0efe3d5.

@SparkQA
Copy link

SparkQA commented Apr 29, 2015

Test build #31254 has finished for PR 5730 at commit 0efe3d5.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31254/
Test FAILed.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented Apr 29, 2015

Test build #31256 has started for PR 5730 at commit cfd14c7.

@SparkQA
Copy link

SparkQA commented Apr 29, 2015

Test build #31256 has finished for PR 5730 at commit cfd14c7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31256/
Test PASSed.

@tianyi
Copy link
Contributor Author

tianyi commented Apr 29, 2015

@liancheng The test codes and is ready to review.

@liancheng
Copy link
Contributor

LGTM, merging to master. Thanks for working on this!

@asfgit asfgit closed this in 343d3bf May 4, 2015
@marmbrus
Copy link
Contributor

marmbrus commented May 6, 2015

The test added here is really noisy:

Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
15/04/29 01:59:46 INFO UISeleniumSuite: Trying to start HiveThriftServer2: port=19866, mode=binary, attempt=0
15/04/29 02:00:16 INFO UISeleniumSuite: HiveThriftServer2 started successfully
15/04/29 02:00:19 WARN DefaultCssErrorHandler: CSS error: 'http://localhost:24602/static/bootstrap.min.css' [10:11] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
15/04/29 02:00:19 WARN DefaultCssErrorHandler: CSS warning: 'http://localhost:24602/static/bootstrap.min.css' [10:11] Ignoring the following declarations in this rule.
15/04/29 02:00:19 WARN DefaultCssErrorHandler: CSS error: 'http://localhost:24602/static/bootstrap.min.css' [15:41] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
15/04/29 02:00:19 WARN DefaultCssErrorHandler: CSS warning: 'http://localhost:24602/static/bootstrap.min.css' [15:41] Ignoring the following declarations in this rule.
15/04/29 02:00:19 WARN DefaultCssErrorHandler: CSS error: 'http://localhost:24602/static/bootstrap.min.css' [26:14] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
15/04/29 02:00:19 WARN DefaultCssErrorHandler: CSS warning: 'http://localhost:24602/static/bootstrap.min.css' [26:14] Ignoring the following declarations in this rule.
15/04/29 02:00:19 WARN DefaultCssErrorHandler: CSS error: 'http://localhost:24602/static/bootstrap.min.css' [39:24] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)

Can you submit a followup to quiet it down?

@tianyi
Copy link
Contributor Author

tianyi commented May 7, 2015

OK, I will work on it.

@tianyi
Copy link
Contributor Author

tianyi commented May 8, 2015

@marmbrus the test issue is fixed in #5983

jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 28, 2015
This PR is a rebased version of apache#3946 , and mainly focused on creating an independent tab for the thrift server in spark web UI.

Features:

1. Session related statistics ( username and IP are only supported in hive-0.13.1 )
2. List all the SQL executing or executed on this server
3. Provide links to the job generated by SQL
4. Provide link to show all SQL executing or executed in a specified session

Prototype snapshots:

This is the main page for thrift server

![image](https://cloud.githubusercontent.com/assets/1411869/7361379/df7dcc64-ed89-11e4-9964-4df0b32f475e.png)

Author: tianyi <tianyi.asiainfo@gmail.com>

Closes apache#5730 from tianyi/SPARK-5100 and squashes the following commits:

cfd14c7 [tianyi] style fix
0efe3d5 [tianyi] revert part of pom change
c0f2fa0 [tianyi] extends HiveThriftJdbcTest to start/stop thriftserver for UI test
aa20408 [tianyi] fix style problem
c9df6f9 [tianyi] add testsuite for thriftserver ui and fix some style issue
9830199 [tianyi] add webui for thriftserver
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
This PR is a rebased version of apache#3946 , and mainly focused on creating an independent tab for the thrift server in spark web UI.

Features:

1. Session related statistics ( username and IP are only supported in hive-0.13.1 )
2. List all the SQL executing or executed on this server
3. Provide links to the job generated by SQL
4. Provide link to show all SQL executing or executed in a specified session

Prototype snapshots:

This is the main page for thrift server

![image](https://cloud.githubusercontent.com/assets/1411869/7361379/df7dcc64-ed89-11e4-9964-4df0b32f475e.png)

Author: tianyi <tianyi.asiainfo@gmail.com>

Closes apache#5730 from tianyi/SPARK-5100 and squashes the following commits:

cfd14c7 [tianyi] style fix
0efe3d5 [tianyi] revert part of pom change
c0f2fa0 [tianyi] extends HiveThriftJdbcTest to start/stop thriftserver for UI test
aa20408 [tianyi] fix style problem
c9df6f9 [tianyi] add testsuite for thriftserver ui and fix some style issue
9830199 [tianyi] add webui for thriftserver
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
This PR is a rebased version of apache#3946 , and mainly focused on creating an independent tab for the thrift server in spark web UI.

Features:

1. Session related statistics ( username and IP are only supported in hive-0.13.1 )
2. List all the SQL executing or executed on this server
3. Provide links to the job generated by SQL
4. Provide link to show all SQL executing or executed in a specified session

Prototype snapshots:

This is the main page for thrift server

![image](https://cloud.githubusercontent.com/assets/1411869/7361379/df7dcc64-ed89-11e4-9964-4df0b32f475e.png)

Author: tianyi <tianyi.asiainfo@gmail.com>

Closes apache#5730 from tianyi/SPARK-5100 and squashes the following commits:

cfd14c7 [tianyi] style fix
0efe3d5 [tianyi] revert part of pom change
c0f2fa0 [tianyi] extends HiveThriftJdbcTest to start/stop thriftserver for UI test
aa20408 [tianyi] fix style problem
c9df6f9 [tianyi] add testsuite for thriftserver ui and fix some style issue
9830199 [tianyi] add webui for thriftserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants