You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by dianacarroll <gi...@git.apache.org> on 2014/02/27 23:43:25 UTC

[GitHub] spark pull request: SPARK-1134

GitHub user dianacarroll opened a pull request:

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

    SPARK-1134 

    bug with ipython: startup scripts are called in both interactive and non-interactive mode.  This prevents non-interactive use with spark because the spark startup  script and user script both attempt to create a SparkContext.  This changes the pyspark script to only call ipython if no command line arguments were supplied, ie: call ipython for interactive use only.

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

    $ git pull https://github.com/dianacarroll/spark master

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

    https://github.com/apache/spark/pull/38.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 #38
    
----
commit 0309cf911cc0379b7de871463c25a7c105202f4b
Author: Diana Carroll <dc...@cloudera.com>
Date:   2014-02-27T22:39:43Z

    SPARK-1134 bug with ipython prevents non-interactive use with spark; only call ipython if no command line arguments were supplied

----


---
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-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#issuecomment-36325871
  
     Merged build triggered.


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

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

    https://github.com/apache/spark/pull/38#issuecomment-36301198
  
    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.
---

[GitHub] spark pull request: SPARK-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#issuecomment-36326995
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/12928/


---
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-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#issuecomment-36325872
  
    Merged build started.


---
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-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#issuecomment-36322600
  
    Jenkins, this is okay to test.


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

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

    https://github.com/apache/spark/pull/38#issuecomment-36301181
  
    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.
---

[GitHub] spark pull request: SPARK-1134 pyspark only uses ipython if starte...

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

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


---
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-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#issuecomment-36387844
  
    I'd like to hold off on merging this until we see how https://github.com/ipython/ipython/pull/5226 is resolved.  It looks like IPython executes `PYTHONSTARTUP` for non-interactive shells, too, which is different from the [behavior in the regular Python interpreter](http://docs.python.org/2/tutorial/interpreter.html#the-interactive-startup-file).  If IPython decides to adopt Python's default `PYTHONSTARTUP` behavior, then I think we'd want to implement a different 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.
---

[GitHub] spark pull request: SPARK-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#issuecomment-36325759
  
    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.
---

[GitHub] spark pull request: SPARK-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#issuecomment-36326993
  
    Merged build finished.


---
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-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#discussion_r10178681
  
    --- Diff: bin/pyspark ---
    @@ -58,7 +58,8 @@ if [ -n "$IPYTHON_OPTS" ]; then
       IPYTHON=1
     fi
     
    -if [[ "$IPYTHON" = "1" ]] ; then
    +# Only use ipython if no command line arguments were provided [SPARK-1134]
    +if [[ "$IPYTHON" = "1" && $# = 0 ]] ; then
       exec ipython $IPYTHON_OPTS
    --- End diff --
    
    If we can, I'd like to remove `IPYTHON_OPTS`, since it makes it a little awkward to start the notebook server:
    
    ```
    IPYTHON=1 IPYTHON_OPTS=notebook ./pyspark
    ```
    versus
    
    ```
    IPYTHON=1 ./pyspark notebook
    ```


---
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-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#issuecomment-38587502
  
    @JoshRosen I don't know anything about notebook or what the implications are for dropping IPYTHON_OPTS.  I'll make the change as requested, though.


---
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-1134 pyspark only uses ipython if starte...

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

    https://github.com/apache/spark/pull/38#issuecomment-36325879
  
     Merged build triggered.


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