You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GraceH <gi...@git.apache.org> on 2014/10/22 16:15:24 UTC

[GitHub] spark pull request: New FsPermission instance w/o FsPermission.cre...

GitHub user GraceH opened a pull request:

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

    New FsPermission instance w/o FsPermission.createImmutable in eventlog

    By default, Spark builds its package against Hadoop 1.0.4 version. In that version, it has some FsPermission bug (see [HADOOP-7629] (https://issues.apache.org/jira/browse/HADOOP-7629) by Todd Lipcon). This bug got fixed since 1.1 version. By using that FsPermission.createImmutable() API, end-user may see some RPC exception like below (if turn on eventlog over HDFS).  Here proposes a quick fix to avoid certain exception for all hadoop versions.
    ```
    Exception in thread "main" java.io.IOException: Call to sr484/10.1.2.84:54310 failed on local exception: java.io.EOFException
            at org.apache.hadoop.ipc.Client.wrapException(Client.java:1150)
            at org.apache.hadoop.ipc.Client.call(Client.java:1118)
            at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:229)
            at $Proxy6.setPermission(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:85)
            at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:62)
            at $Proxy6.setPermission(Unknown Source)
            at org.apache.hadoop.hdfs.DFSClient.setPermission(DFSClient.java:1285)
            at org.apache.hadoop.hdfs.DistributedFileSystem.setPermission(DistributedFileSystem.java:572)
            at org.apache.spark.util.FileLogger.createLogDir(FileLogger.scala:138)
            at org.apache.spark.util.FileLogger.start(FileLogger.scala:115)
            at org.apache.spark.scheduler.EventLoggingListener.start(EventLoggingListener.scala:74)
            at org.apache.spark.SparkContext.<init>(SparkContext.scala:324)
    ```

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

    $ git pull https://github.com/GraceH/spark eventlog-rpc

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

    https://github.com/apache/spark/pull/2892.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 #2892
    
----
commit 58ea0385939e3c3244d1e8a91dcc3bdef58dd816
Author: Grace <ji...@intel.com>
Date:   2014-10-22T13:59:13Z

    new FsPermission Instance w/o FsPermission.createImmutable

----


---
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-4078] New FsPermission instance w/o FsP...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60416557
  
    @GraceH I think for now it will be best to continue to support Hadoop 1.0.4. What is the new API you refer to and does it work on 1.0.4? I thought you are saying that `FsPermission.createImmutable` doesn't work in 1.0.4. For what it's worth I think it's a fine change as long as it works on newer versions too, and I assume it does.


---
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-4078] New FsPermission instance w/o FsP...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60820084
  
    I have run into this exception myself quite frequently. It'd be great to see this fixed.


---
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-4078] New FsPermission instance w/o FsP...

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

    https://github.com/apache/spark/pull/2892#issuecomment-61180503
  
    Ok I'm merging this. Thanks!


---
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-4078] New FsPermission instance w/o FsP...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60831351
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/22372/
    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-4078] New FsPermission instance w/o FsP...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60820541
  
      [Test build #22372 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/22372/consoleFull) for   PR 2892 at commit [`58ea038`](https://github.com/apache/spark/commit/58ea0385939e3c3244d1e8a91dcc3bdef58dd816).
     * 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: New FsPermission instance w/o FsPermission.cre...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60399662
  
    Thanks @srowen. Actually, this is really an old bug exiting in the previous Hadoop version. But I am not quite sure if there is any concern to use 1.0.4 as the default Hadoop version now. Two possible solutions to fix that RPC exception for eventlog over HDFS.
    1. One is to upgrade the default Hadoop version to 1.1.x above. There won't be an issue any more. 
    2. Another workaround is like this, to use new FSPermission() API. Both APIs are acceptable here, although the FsPermission.createImmutable is much more readable. 
    
    I will create a JIRA for further discussion. Please let me know your comment there. Thanks.


---
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-4078] New FsPermission instance w/o FsP...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60831340
  
      [Test build #22372 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/22372/consoleFull) for   PR 2892 at commit [`58ea038`](https://github.com/apache/spark/commit/58ea0385939e3c3244d1e8a91dcc3bdef58dd816).
     * 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: New FsPermission instance w/o FsPermission.cre...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60091379
  
    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-4078] New FsPermission instance w/o FsP...

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

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


---
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-4078] New FsPermission instance w/o FsP...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60819848
  
    add to whitelist


---
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-4078] New FsPermission instance w/o FsP...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60539467
  
    @srowen, if we stick on 1.0.4, I'd prefer to use new FsPermission(), what this PR does. This function also works for newer versions. Thanks.


---
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: New FsPermission instance w/o FsPermission.cre...

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

    https://github.com/apache/spark/pull/2892#issuecomment-60394574
  
    Aw, do we really still have to support Hadoop 1.0.x ...
    Looks reasonable since this object is never mutated or at risk of being changed accidentally. Make a JIRA? and double-check it compiles vs very recent Hadoop like 2.4+, but I'm seeing the same constructor still exists there, so probably fine.



---
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-4078] New FsPermission instance w/o FsP...

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

    https://github.com/apache/spark/pull/2892#issuecomment-61193828
  
    Thanks a lot @andrewor14. 


---
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