Skip to content

Commit

Permalink
Lower page size in PySpark tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jul 30, 2015
1 parent 013b9da commit d6986de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/pyspark/java_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ def launch_gateway():
script = "./bin/spark-submit.cmd" if on_windows else "./bin/spark-submit"
submit_args = os.environ.get("PYSPARK_SUBMIT_ARGS", "pyspark-shell")
if os.environ.get("SPARK_TESTING"):
submit_args = "--conf spark.ui.enabled=false " + submit_args
submit_args = ' '.join([
"--conf spark.ui.enabled=false",
"--conf spark.buffer.pageSize=4mb",
submit_args
])
command = [os.path.join(SPARK_HOME, script)] + shlex.split(submit_args)

# Start a socket that will be used by PythonGatewayServer to communicate its port to us
Expand Down

0 comments on commit d6986de

Please sign in to comment.