diff options
author | shane-huang <shengsheng.huang@intel.com> | 2013-09-26 17:08:47 +0800 |
---|---|---|
committer | shane-huang <shengsheng.huang@intel.com> | 2013-09-26 17:08:47 +0800 |
commit | e8b1ee04fcb4cd7b666d3148d6d5ff148551ce72 (patch) | |
tree | f5b06502813cca286e2db98b6cf7df2355df0c2a /python/pyspark | |
parent | 14098037630196d2672431539503f27be67be480 (diff) | |
download | spark-e8b1ee04fcb4cd7b666d3148d6d5ff148551ce72.tar.gz spark-e8b1ee04fcb4cd7b666d3148d6d5ff148551ce72.tar.bz2 spark-e8b1ee04fcb4cd7b666d3148d6d5ff148551ce72.zip |
fix paths and change spark to use APP_MEM as application driver memory instead of SPARK_MEM, user should add application jars to SPARK_CLASSPATH
Signed-off-by: shane-huang <shengsheng.huang@intel.com>
Diffstat (limited to 'python/pyspark')
-rw-r--r-- | python/pyspark/java_gateway.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/java_gateway.py b/python/pyspark/java_gateway.py index f7834ef803..b872ae61d5 100644 --- a/python/pyspark/java_gateway.py +++ b/python/pyspark/java_gateway.py @@ -31,7 +31,7 @@ def launch_gateway(): # Launch the Py4j gateway using Spark's run command so that we pick up the # proper classpath and SPARK_MEM settings from spark-env.sh on_windows = platform.system() == "Windows" - script = "/sbin/spark-class.cmd" if on_windows else "/sbin/spark-class" + script = "./sbin/spark-class.cmd" if on_windows else "./sbin/spark-class" command = [os.path.join(SPARK_HOME, script), "py4j.GatewayServer", "--die-on-broken-pipe", "0"] if not on_windows: |