Skip to content

Conversation

@MartinWeindel
Copy link
Contributor

This patch makes Spark 1.2.1rc2 work again on Windows.

Without it you get following log output on creating a Spark context:
INFO org.apache.spark.SparkEnv:59 - Registering BlockManagerMaster
ERROR org.apache.spark.util.Utils:75 - Failed to create local root dir in .... Ignoring this directory.
ERROR org.apache.spark.storage.DiskBlockManager:75 - Failed to create any local dir.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@srowen
Copy link
Member

srowen commented Jan 31, 2015

(This needs a JIRA) Did this work in 1.2.0? the question will be whether it's a regression or not.

@MartinWeindel
Copy link
Contributor Author

Yes, it's a regression. It worked with 1.2.0.

@zhzhan
Copy link
Contributor

zhzhan commented Jan 31, 2015

I didn't try 1.2.1, but in 1.2.0, I didn't met such problems in windows.

Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't this comment belong after if (!isWindows), and not in the else clause that presumably does work for Windows?

@MartinWeindel
Copy link
Contributor Author

Moved comment after if (!isWindows) as suggested. Thanks!

@andrewor14
Copy link
Contributor

ok to test

@SparkQA
Copy link

SparkQA commented Feb 2, 2015

Test build #26483 has started for PR 4299 at commit fe2740b.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 2, 2015

Test build #26483 has finished for PR 4299 at commit fe2740b.

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

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

@andrewor14
Copy link
Contributor

Hey @MartinWeindel thanks for submitting the patch. Apparently this is a known issue: http://stackoverflow.com/questions/5302269/java-file-setwritable-and-stopped-working-correctly-after-jdk-6u18. For Spark 1.2.1 I think it makes sense to just commit the changes here after updating the javadoc comments.

Also, any ideas why the diff for this PR is almost 2k lines? Is your IDE changing the line end characters somehow?

@SparkQA
Copy link

SparkQA commented Feb 2, 2015

Test build #26527 has started for PR 4299 at commit 4de5e91.

  • This patch merges cleanly.

Copy link
Contributor

Choose a reason for hiding this comment

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

@MartinWeindel, mind adding a comment to this Javadoc to explain that this method is a no-op under Windows?

Copy link
Contributor

Choose a reason for hiding this comment

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

What if we swapped the order of these conditionals so that we first attempt to change the permissions and then ignore failures if we're running on Windows? Would that work, or would it fail with an exception?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, the current ordering seems more intuitive, so I'm going to keep the patch in its current form.

@SparkQA
Copy link

SparkQA commented Feb 2, 2015

Test build #26536 has started for PR 4299 at commit 535cb7f.

  • This patch merges cleanly.

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

@JoshRosen
Copy link
Contributor

Ah, the Git timeout problem resurfaces once again :(.

Jenkins, retest this please.

@MartinWeindel
Copy link
Contributor Author

Am 02.02.2015 um 22:07 schrieb UCB AMPLab:

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


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

There seems to be a problem with checking out the patch. Can some
administrator take a look on this?

@JoshRosen
Copy link
Contributor

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Feb 2, 2015

Test build #26540 has started for PR 4299 at commit 535cb7f.

  • This patch merges cleanly.

@JoshRosen
Copy link
Contributor

I built this branch under Windows and tested it out using spark-shell; I was able to reproduce the original bug and can confirm that this patch fixes it, so I'm going to merge this. Thanks for catching and fixing this bug!

asfgit pushed a commit that referenced this pull request Feb 2, 2015
This patch makes Spark 1.2.1rc2 work again on Windows.

Without it you get following log output on creating a Spark context:
INFO  org.apache.spark.SparkEnv:59 - Registering BlockManagerMaster
ERROR org.apache.spark.util.Utils:75 - Failed to create local root dir in .... Ignoring this directory.
ERROR org.apache.spark.storage.DiskBlockManager:75 - Failed to create any local dir.

Author: Martin Weindel <martin.weindel@gmail.com>
Author: mweindel <m.weindel@usu-software.de>

Closes #4299 from MartinWeindel/branch-1.2 and squashes the following commits:

535cb7f [Martin Weindel] fixed last commit
f17072e [Martin Weindel] moved condition to caller to avoid confusion on chmod700() return value
4de5e91 [Martin Weindel] reverted to unix line ends
fe2740b [mweindel] moved comment
ac4749c [mweindel] fixed chmod700 for Windows
@asfgit asfgit closed this in bff65b5 Feb 2, 2015
@SparkQA
Copy link

SparkQA commented Feb 2, 2015

Test build #26527 has finished for PR 4299 at commit 4de5e91.

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

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

@SparkQA
Copy link

SparkQA commented Feb 2, 2015

Test build #26536 has finished for PR 4299 at commit 535cb7f.

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

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

@SparkQA
Copy link

SparkQA commented Feb 2, 2015

Test build #26540 has finished for PR 4299 at commit 535cb7f.

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

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

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