Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/30#discussion_r11649970
--- Diff: python/pyspark/context.py ---
@@ -130,6 +130,13 @@ def __init__(self, master=None, appName=None,
sparkHome=None, pyFiles=None,
varName = k[len("spark.executorEnv."):]
self.environment[varName] = v
+ # Check if we're running on YARN:
+ if self.master == "yarn-client":
+ if not os.environ.get("SPARK_JAR"):
--- End diff --
@sryza do we need to require this specifically for pyspark? I've proposed
some changes in #299 that allow us to detect the jar automatically, so I don't
think this is always necessary.
---
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.
---