You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by judynash <gi...@git.apache.org> on 2015/02/24 09:35:29 UTC

[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

GitHub user judynash opened a pull request:

    https://github.com/apache/spark/pull/4742

    [SPARK-5914] to run spark-submit requiring only user perm on windows

    Because windows on-default does not grant read permission to jars except to admin, spark-submit would fail with "ClassNotFound" exception if user runs slave service with only user permission. 
    This fix is to add read permission to owner of the jar (which would be the slave service account in windows ) 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/judynash/spark SPARK-5914

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/4742.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4742
    
----
commit 1de3c0e8b0923e306105cdf51f72873c840f5343
Author: Judy Nash <ju...@microsoft.com>
Date:   2015-02-24T08:29:53Z

    [SPARK-5914] Enable spark-submit to run requiring only user permission on windows

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-76152977
  
    LGTM. I'll fix the space before the brace on merge. This seems like a clean, simple fix.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-75732918
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27888/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-76105870
  
      [Test build #27968 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27968/consoleFull) for   PR 4742 at commit [`e288e56`](https://github.com/apache/spark/commit/e288e56a91298c55e656679ef27b313df7649836).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-75732908
  
      [Test build #27888 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27888/consoleFull) for   PR 4742 at commit [`1de3c0e`](https://github.com/apache/spark/commit/1de3c0e8b0923e306105cdf51f72873c840f5343).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4742#discussion_r25241254
  
    --- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
    @@ -439,7 +439,14 @@ private[spark] object Utils extends Logging {
           executeAndGetOutput(Seq("tar", "-xf", fileName), targetDir)
         }
         // Make the file executable - That's necessary for scripts
    -    FileUtil.chmod(targetFile.getAbsolutePath, "a+x")
    +    if(isWindows){
    +      // Windows does not grant read permission by default to non-admin users
    +      // Add read permission to owner explicitly
    +      FileUtil.chmod(targetFile.getAbsolutePath, "u+r")
    +      FileUtil.chmod(targetFile.getAbsolutePath, "a+x")
    +    } else {
    +      FileUtil.chmod(targetFile.getAbsolutePath, "a+x")
    --- End diff --
    
    This doesn't need to be in both branches of the `if`  right -- this boils down to just adding `u+r` if `isWindows` and not affecting the current line.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-76105882
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27968/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-75720961
  
    Jenkins, test this please.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by judynash <gi...@git.apache.org>.
Github user judynash commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-76090639
  
    Looks like the test didn't rerun after submitting updated code?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-75721415
  
      [Test build #27888 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27888/consoleFull) for   PR 4742 at commit [`1de3c0e`](https://github.com/apache/spark/commit/1de3c0e8b0923e306105cdf51f72873c840f5343).
     * This patch merges cleanly.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-76091410
  
    Jenkins, retest this please


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-75717815
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4742#issuecomment-76092182
  
      [Test build #27968 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27968/consoleFull) for   PR 4742 at commit [`e288e56`](https://github.com/apache/spark/commit/e288e56a91298c55e656679ef27b313df7649836).
     * This patch merges cleanly.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/4742


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-5914] to run spark-submit requiring onl...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4742#discussion_r25237061
  
    --- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
    @@ -439,7 +439,14 @@ private[spark] object Utils extends Logging {
           executeAndGetOutput(Seq("tar", "-xf", fileName), targetDir)
         }
         // Make the file executable - That's necessary for scripts
    -    FileUtil.chmod(targetFile.getAbsolutePath, "a+x")
    +    if(isWindows){
    --- End diff --
    
    mind adding a space after `if`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org