Skip to content
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

[SPARK-7298] Harmonize style of new visualizations #5942

Closed
wants to merge 6 commits into from

Conversation

mateiz
Copy link
Contributor

@mateiz mateiz commented May 6, 2015

  • Colors on the timeline now match the rest of the UI
  • The expandable buttons to show timeline view, DAG, etc are now more visible
  • Timeline text is smaller
  • DAG visualization text and colors are more consistent throughout
  • Fix some JavaScript style issues
  • Various small fixes throughout (e.g. inconsistent capitalization, some confusing names, HTML escaping, etc)

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 6, 2015

Test build #31979 has started for PR 5942 at commit 49fd0eb.

<strong>Scheduling Mode: </strong>
{listener.schedulingMode.map(_.toString).getOrElse("Unknown")}
</li>
{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed this because this info is already on the homepage

@SparkQA
Copy link

SparkQA commented May 6, 2015

Test build #31979 has finished for PR 5942 at commit 49fd0eb.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@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/31979/
Test PASSed.

@tdas
Copy link
Contributor

tdas commented May 7, 2015

@mateiz Could you post before and after screenshots :)

@tdas
Copy link
Contributor

tdas commented May 7, 2015

@zsxwing you should take a look at the changes to the streaming UI

@tdas
Copy link
Contributor

tdas commented May 7, 2015

also pinging @andrewor14

@@ -352,7 +353,7 @@ private[spark] object UIUtils extends Logging {
<div>
<span class="expand-dag-viz" onclick={s"toggleDagViz($forJob);"}>
<span class="expand-dag-viz-arrow arrow-closed"></span>
<strong>DAG visualization</strong>
<a>DAG Visualization</a>

Choose a reason for hiding this comment

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

Small typo. This shouldn't be an <a />

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, why would it be? </a> is proper HTML syntax.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32128 has started for PR 5942 at commit be03a58.

@mateiz
Copy link
Contributor Author

mateiz commented May 7, 2015

Here are some pics of what it looks like:

screen shot 2015-05-07 at 1 52 58 pm
screen shot 2015-05-07 at 1 54 07 pm

<link rel="stylesheet" href={prependBaseUri("/static/webui.css")}
type="text/css" />
<link rel="stylesheet" href={prependBaseUri("/static/timeline-view.css")}
type="text/css"></link>
Copy link
Contributor

Choose a reason for hiding this comment

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

small nit: this can be /> to be consistent with the other lines.

@andrewor14
Copy link
Contributor

@mateiz The new colors look great! One thing that would be good to add is synchronize hovers over the two graphs on the job page. E.g. if I mouseover a stage on the timeline, it should light up in the DAG and vice versa. I can add this separately if you prefer.

@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32128 has finished for PR 5942 at commit be03a58.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@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/32128/
Test PASSed.

@mateiz
Copy link
Contributor Author

mateiz commented May 7, 2015

Yeah let's add that separately. BTW I will take a bit of time to tweak the DAG view as well, and after that I think I'm done with this PR.

@AmplabJenkins
Copy link

Build triggered.

@AmplabJenkins
Copy link

Build started.

@andrewor14
Copy link
Contributor

DAG parts LGTM.

@mateiz
Copy link
Contributor Author

mateiz commented May 8, 2015

Cool, thanks! I've reduced the spacing too with your hint.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 8, 2015

Test build #32196 has started for PR 5942 at commit 4c5a364.

@SparkQA
Copy link

SparkQA commented May 8, 2015

Test build #32189 has finished for PR 5942 at commit 43dcbe3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class ElementwiseProduct extends UnaryTransformer[Vector, Vector, ElementwiseProduct]
    • class ElementwiseProduct(val scalingVector: Vector) extends VectorTransformer
    • trait Star extends NamedExpression with trees.LeafNode[Expression]
    • trait CaseWhenLike extends Expression
    • case class CaseWhen(branches: Seq[Expression]) extends CaseWhenLike
    • case class CaseKeyWhen(key: Expression, branches: Seq[Expression]) extends CaseWhenLike
    • case class CreateTableAsSelect(

@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/32189/
Test PASSed.

@SparkQA
Copy link

SparkQA commented May 8, 2015

Test build #32196 has finished for PR 5942 at commit 4c5a364.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class ElementwiseProduct extends UnaryTransformer[Vector, Vector, ElementwiseProduct]
    • class ElementwiseProduct(val scalingVector: Vector) extends VectorTransformer
    • trait Star extends NamedExpression with trees.LeafNode[Expression]
    • trait CaseWhenLike extends Expression
    • case class CaseWhen(branches: Seq[Expression]) extends CaseWhenLike
    • case class CaseKeyWhen(key: Expression, branches: Seq[Expression]) extends CaseWhenLike
    • case class CreateTableAsSelect(

@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/32196/
Test FAILed.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 8, 2015

Test build #32239 has started for PR 5942 at commit def38d0.

@pwendell
Copy link
Contributor

pwendell commented May 8, 2015

This looks cool Matei. I did some basic playing around and found a case where it looks like the job level DAG is broken. Not sure if it was added by this patch though (ping @andrewor14 as well):

val df = sqlContext.jsonFile("examples/src/main/resources/people.json")
df: org.apache.spark.sql.DataFrame = [age: bigint, name: string]
scala> df.count()
res0: Long = 3

screen shot 2015-05-08 at 4 16 48 pm

@mateiz
Copy link
Contributor Author

mateiz commented May 8, 2015

Yeah that seems to be a bug in the JS for drawing DAGs that might've been there before (look at the JS console during it, you will see an error printed).

@pwendell
Copy link
Contributor

pwendell commented May 8, 2015

Sounds good - the changes in this patch LGTM.

On Fri, May 8, 2015 at 4:33 PM, Matei Zaharia notifications@github.com
wrote:

Yeah that seems to be a bug in the JS for drawing DAGs that might've been
there before (look at the JS console during it, you will see an error
printed).


Reply to this email directly or view it on GitHub
#5942 (comment).

@SparkQA
Copy link

SparkQA commented May 8, 2015

Test build #32239 has finished for PR 5942 at commit def38d0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@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/32239/
Test PASSed.

@zsxwing
Copy link
Member

zsxwing commented May 8, 2015

@pwendell , @andrewor14 is fixing it in #6002

@andrewor14
Copy link
Contributor

Thanks @zsxwing. Yes it's currently broken for SQL. There are a few upcoming fixes:

asfgit pushed a commit that referenced this pull request May 8, 2015
- Colors on the timeline now match the rest of the UI
- The expandable buttons to show timeline view, DAG, etc are now more visible
- Timeline text is smaller
- DAG visualization text and colors are more consistent throughout
- Fix some JavaScript style issues
- Various small fixes throughout (e.g. inconsistent capitalization, some confusing names, HTML escaping, etc)

Author: Matei Zaharia <matei@databricks.com>

Closes #5942 from mateiz/ui and squashes the following commits:

def38d0 [Matei Zaharia] Add some tooltips
4c5a364 [Matei Zaharia] Reduce stage and rank separation slightly
43dcbe3 [Matei Zaharia] Some updates to DAG
fac734a [Matei Zaharia] tweaks
6a6705d [Matei Zaharia] More fixes
67629f5 [Matei Zaharia] Various small tweaks

(cherry picked from commit a1ec08f)
Signed-off-by: Matei Zaharia <matei@databricks.com>
@asfgit asfgit closed this in a1ec08f May 8, 2015
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 28, 2015
- Colors on the timeline now match the rest of the UI
- The expandable buttons to show timeline view, DAG, etc are now more visible
- Timeline text is smaller
- DAG visualization text and colors are more consistent throughout
- Fix some JavaScript style issues
- Various small fixes throughout (e.g. inconsistent capitalization, some confusing names, HTML escaping, etc)

Author: Matei Zaharia <matei@databricks.com>

Closes apache#5942 from mateiz/ui and squashes the following commits:

def38d0 [Matei Zaharia] Add some tooltips
4c5a364 [Matei Zaharia] Reduce stage and rank separation slightly
43dcbe3 [Matei Zaharia] Some updates to DAG
fac734a [Matei Zaharia] tweaks
6a6705d [Matei Zaharia] More fixes
67629f5 [Matei Zaharia] Various small tweaks
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
- Colors on the timeline now match the rest of the UI
- The expandable buttons to show timeline view, DAG, etc are now more visible
- Timeline text is smaller
- DAG visualization text and colors are more consistent throughout
- Fix some JavaScript style issues
- Various small fixes throughout (e.g. inconsistent capitalization, some confusing names, HTML escaping, etc)

Author: Matei Zaharia <matei@databricks.com>

Closes apache#5942 from mateiz/ui and squashes the following commits:

def38d0 [Matei Zaharia] Add some tooltips
4c5a364 [Matei Zaharia] Reduce stage and rank separation slightly
43dcbe3 [Matei Zaharia] Some updates to DAG
fac734a [Matei Zaharia] tweaks
6a6705d [Matei Zaharia] More fixes
67629f5 [Matei Zaharia] Various small tweaks
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
- Colors on the timeline now match the rest of the UI
- The expandable buttons to show timeline view, DAG, etc are now more visible
- Timeline text is smaller
- DAG visualization text and colors are more consistent throughout
- Fix some JavaScript style issues
- Various small fixes throughout (e.g. inconsistent capitalization, some confusing names, HTML escaping, etc)

Author: Matei Zaharia <matei@databricks.com>

Closes apache#5942 from mateiz/ui and squashes the following commits:

def38d0 [Matei Zaharia] Add some tooltips
4c5a364 [Matei Zaharia] Reduce stage and rank separation slightly
43dcbe3 [Matei Zaharia] Some updates to DAG
fac734a [Matei Zaharia] tweaks
6a6705d [Matei Zaharia] More fixes
67629f5 [Matei Zaharia] Various small tweaks
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.

8 participants