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-13142] [Web UI] Problem accessing Web UI /logPage/ on Microsoft Windows #11135

Closed

Conversation

markpavey
Copy link

Due to being on a Windows platform I have been unable to run the tests as described in the "Contributing to Spark" instructions. As the change is only to two lines of code in the Web UI, which I have manually built and tested, I am submitting this pull request anyway. I hope this is OK.

Is it worth considering also including this fix in any future 1.5.x releases (if any)?

I confirm this is my own original work and license it to the Spark project under its open source license.

@srowen
Copy link
Member

srowen commented Feb 9, 2016

It seems like a small OK change that fixes your problem. I wonder however if there are other instances? I'd love to see if we can fix this more consistently.

I don't know, is it feasible to fix the hard-coding at all? it may be too widespread.

I also wonder if the Path API in JDK 7 helps at all, but that seems unimportant

@andrewor14
Copy link
Contributor

ok to test

@SparkQA
Copy link

SparkQA commented Feb 9, 2016

Test build #50987 has finished for PR 11135 at commit c517ead.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@markpavey
Copy link
Author

I am confused as Jenkins is saying that unit tests failed but the test results show they all passed. The console output shows a "Running java...failed" error part way through the test suite but I can't see what has caused this.

@srowen
Copy link
Member

srowen commented Feb 10, 2016

Here's the full log, but I agree it's not quite clear what failed:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50987/consoleFull

I'm all but sure it's a spurious failure. We can retest it; it will kick off again if you submit more changes anyway.

@markpavey
Copy link
Author

Is it possible to retest without submitting more changes? I haven't got any more to add.

A quick search of the spark-core code base shows that URIs are mostly created with File.toURI(), hence I went for that in my patch.

There are a couple of different approaches:

  • org.apache.spark.util.Utils.resolveURI(path) catches the URISyntaxException
  • SparkContext.addJar(path) looks for a backslash character to tell if it's a Windows path
  • org.apache.spark.deploy.ClientArguments.isValidJarUrl(s) treats paths as invalid if they fail URI parsing

An exhaustive search might reveal more.

It is only the problem with viewing the logs in the web UI that has been causing us pain, hence that was what we fixed.

@srowen
Copy link
Member

srowen commented Feb 10, 2016

Jenkins, retest this please

@SparkQA
Copy link

SparkQA commented Feb 10, 2016

Test build #51034 has finished for PR 11135 at commit c517ead.

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

@srowen
Copy link
Member

srowen commented Feb 13, 2016

Merged to master/1.6

asfgit pushed a commit that referenced this pull request Feb 13, 2016
… Windows

Due to being on a Windows platform I have been unable to run the tests as described in the "Contributing to Spark" instructions. As the change is only to two lines of code in the Web UI, which I have manually built and tested, I am submitting this pull request anyway. I hope this is OK.

Is it worth considering also including this fix in any future 1.5.x releases (if any)?

I confirm this is my own original work and license it to the Spark project under its open source license.

Author: markpavey <mark.pavey@thefilter.com>

Closes #11135 from markpavey/JIRA_SPARK-13142_WindowsWebUILogFix.

(cherry picked from commit 374c4b2)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@asfgit asfgit closed this in 374c4b2 Feb 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants