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-1417: Spark on Yarn - spark UI link from resourcemanager is broken #344

Closed
wants to merge 7 commits into from

Conversation

tgravescs
Copy link
Contributor

No description provided.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13843/

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13851/

/**
* Return the application UI address. This does not include the scheme (http://).
*/
private[spark] def appUIAddress = publicHost + ":" + boundPort
Copy link
Contributor

Choose a reason for hiding this comment

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

hm - rather than doing this what about having appUIHostPort in addition to appUIAddress. Even though address is not an official term, I think people downstream would expect it to have a scheme (ala http://en.wikipedia.org/wiki/Uniform_resource_locator).

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'm fine with that. That is actually what I originally had back when I put in the support for linking spark ui to yarn ui, but during the review we decided to remove it since it was only used in one other spot.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.


test("verify appUIHostPort doesn't contain scheme") {
val appUIUri = new URI(sc.ui.appUIHostPort)
assert(appUIUri.getScheme().startsWith("http") == false)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: assert(!appUIUri.getScheme().startsWith("http")) (similarly in L33)

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@tgravescs
Copy link
Contributor Author

Thanks,

@tgravescs tgravescs closed this Apr 7, 2014
@tgravescs tgravescs reopened this Apr 7, 2014
@tgravescs
Copy link
Contributor Author

Thanks for the review, updated it to remove extra newline and simplify the assert. (and I accidentally hit the close button instead of the comment button).

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13859/

* Return the application UI host:port. This does not include the scheme (http://).
*/
private[spark] def appUIHostPort = publicHost + ":" + boundPort

private[spark] def appUIAddress = "http://" + publicHost + ":" + boundPort
Copy link
Contributor

Choose a reason for hiding this comment

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

Pedantic - but this one could just use appUIHostPort - tiny thing, don't let it block you from merging this.

private[spark] def appUIAddress = s"http://$appUIHostPort"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for catching that. I had meant to do that, updating.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13857/

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13895/

@tgravescs
Copy link
Contributor Author

Is jenkins not picking up the latest changes?

The test it says is failing works fine for me.

@aarondav
Copy link
Contributor

aarondav commented Apr 8, 2014

It seems that URI requires a scheme in the parameter, so new URI(appUIHostPort) fails that check (which is part of the suite currently in github).

@tgravescs
Copy link
Contributor Author

Oh its because jenkins is picking up an ip instead of when I run it locally it picks up the host. Ok, let me fix that test.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13901/

@tgravescs
Copy link
Contributor Author

Jenkins, test this please

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13916/

@mridulm
Copy link
Contributor

mridulm commented Apr 11, 2014

Merging this into master.
@tgravescs, @pwendell if this is relevant to 1.0, please do merge into that branch too.

@asfgit asfgit closed this in 446bb34 Apr 11, 2014
@tgravescs
Copy link
Contributor Author

I pulled this into branch-1.0.

asfgit pushed a commit that referenced this pull request Apr 11, 2014
Author: Thomas Graves <[email protected]>

Closes #344 from tgravescs/SPARK-1417 and squashes the following commits:

c450b5f [Thomas Graves] fix test
e1c1d7e [Thomas Graves] add missing $ to appUIAddress
e982ddb [Thomas Graves] use appUIHostPort in appUIAddress
0803ec2 [Thomas Graves] Review comment updates - remove extra newline, simplify assert in test
658a8ec [Thomas Graves] Add a appUIHostPort routine
0614208 [Thomas Graves] Fix test
2a6b1b7 [Thomas Graves] SPARK-1417: Spark on Yarn - spark UI link from resourcemanager is broken
@hsaputra
Copy link
Contributor

Cool! Thanks @tgravescs

pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
Author: Thomas Graves <[email protected]>

Closes apache#344 from tgravescs/SPARK-1417 and squashes the following commits:

c450b5f [Thomas Graves] fix test
e1c1d7e [Thomas Graves] add missing $ to appUIAddress
e982ddb [Thomas Graves] use appUIHostPort in appUIAddress
0803ec2 [Thomas Graves] Review comment updates - remove extra newline, simplify assert in test
658a8ec [Thomas Graves] Add a appUIHostPort routine
0614208 [Thomas Graves] Fix test
2a6b1b7 [Thomas Graves] SPARK-1417: Spark on Yarn - spark UI link from resourcemanager is broken
tangzhankun pushed a commit to tangzhankun/spark that referenced this pull request Jul 21, 2017
* Fix sbt build.

- Remove extraneous Feign dependency that we no longer use in submission
v2.
- Exclude Jackson from various modules to ensure every Jackson module is
forced to 2.6.5.
- Fix a linter error only caught by sbt.
- Add Kubernetes modules to various parts of the SBT infrastructure

* Actually remove feign

* Actually exclude Jackson from kubernetes client.
erikerlandson pushed a commit to erikerlandson/spark that referenced this pull request Jul 28, 2017
* Fix sbt build.

- Remove extraneous Feign dependency that we no longer use in submission
v2.
- Exclude Jackson from various modules to ensure every Jackson module is
forced to 2.6.5.
- Fix a linter error only caught by sbt.
- Add Kubernetes modules to various parts of the SBT infrastructure

* Actually remove feign

* Actually exclude Jackson from kubernetes client.
mccheah added a commit to mccheah/spark that referenced this pull request Oct 3, 2018
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
Add domain_id of public clouds into secrets.yaml
arjunshroff pushed a commit to arjunshroff/spark that referenced this pull request Nov 24, 2020
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.

7 participants