You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by JoshRosen <gi...@git.apache.org> on 2014/07/27 02:31:48 UTC

[GitHub] spark pull request: [SPARK-1550] [PySpark] Allow SparkContext crea...

GitHub user JoshRosen opened a pull request:

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

    [SPARK-1550] [PySpark] Allow SparkContext creation after failed attempts

    This addresses a PySpark issue where a failed attempt to construct SparkContext would prevent any future SparkContext creation.

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

    $ git pull https://github.com/JoshRosen/spark SPARK-1550

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

    https://github.com/apache/spark/pull/1606.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 #1606
    
----
commit ec7fadc59d422482c57c262ac05f4866055d825b
Author: Josh Rosen <jo...@apache.org>
Date:   2014-07-27T00:24:50Z

    [SPARK-1550] [PySpark] Allow SparkContext creation after failed attempts

----


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

[GitHub] spark pull request: [SPARK-1550] [PySpark] Allow SparkContext crea...

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

    https://github.com/apache/spark/pull/1606#issuecomment-50302563
  
    Thanks Josh, merged this.


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

[GitHub] spark pull request: [SPARK-1550] [PySpark] Allow SparkContext crea...

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

    https://github.com/apache/spark/pull/1606#issuecomment-50269547
  
    +1 lgtm
    
    i've been hitting this issue repeatedly, but assumed it was a corner case that wouldn't get much attention. my assumption is that use of spark-submit and pyspark are the primary ways to get a context.


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

[GitHub] spark pull request: [SPARK-1550] [PySpark] Allow SparkContext crea...

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

    https://github.com/apache/spark/pull/1606#discussion_r15436589
  
    --- Diff: python/pyspark/context.py ---
    @@ -249,17 +258,14 @@ def defaultMinPartitions(self):
             """
             return self._jsc.sc().defaultMinPartitions()
     
    -    def __del__(self):
    --- End diff --
    
    Because we keep a reference to this object in `SparkContext._active_spark_context`, this method never gets called except when cleaning up after a `SparkContext` creation attempt that failed because another context was already running.  In that case, the call to `sc.stop()` clears `SparkContext._active_spark_context` and we lose track of the active context, which can allow the creation of multiple running contexts.


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

[GitHub] spark pull request: [SPARK-1550] [PySpark] Allow SparkContext crea...

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

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


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

[GitHub] spark pull request: [SPARK-1550] [PySpark] Allow SparkContext crea...

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

    https://github.com/apache/spark/pull/1606#issuecomment-50252948
  
    QA results for PR 1606:<br>- This patch PASSES unit tests.<br>- This patch merges cleanly<br>- This patch adds no public classes<br><br>For more information see test ouptut:<br>https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17232/consoleFull


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

[GitHub] spark pull request: [SPARK-1550] [PySpark] Allow SparkContext crea...

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

    https://github.com/apache/spark/pull/1606#issuecomment-50252309
  
    QA tests have started for PR 1606. This patch merges cleanly. <br>View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17232/consoleFull


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