GitHub user kayousterhout opened a pull request:
https://github.com/apache/spark/pull/383
[SPARK-1466] Raise exception if pyspark Gateway process doesn't start.
If the gateway process fails to start correctly (e.g., because JAVA_HOME
isn't set correctly, there's no Spark jar, etc.), right now pyspark fails
because of a very difficult-to-understand error, where we try to parse stdout
to get the port where Spark started and there's nothing there. This commit
properly catches the error and throws an exception that includes the stderr
output for much easier debugging.
Thanks to @shivaram and @stogers for helping to fix this issue!
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kayousterhout/spark-1 pyspark
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/383.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 #383
----
commit 14293973c186f542a567ce9040ff672c3ddb6ea9
Author: Kay Ousterhout <[email protected]>
Date: 2014-04-10T21:14:12Z
[SPARK-1466] Raise exception if Gateway process doesn't start.
Also include stderr output to help user debug startup issue.
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---