Skip to content

Commit e5079d3

Browse files
committed
fix pylint
1 parent 82d894d commit e5079d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/run-tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ def run_individual_python_test(target_dir, test_name, pyspark_python):
8787
env["TMPDIR"] = tmp_dir
8888

8989
# Also override the JVM's temp directory by setting driver and executor options.
90+
java_options = "-Djava.io.tmpdir={0} -Dio.netty.tryReflectionSetAccessible=true".format(tmp_dir)
9091
spark_args = [
91-
"--conf", "spark.driver.extraJavaOptions=-Djava.io.tmpdir={0}".format(tmp_dir),
92-
"--conf", "spark.executor.extraJavaOptions=-Djava.io.tmpdir={0}".format(tmp_dir),
92+
"--conf", "spark.driver.extraJavaOptions='{0}'".format(java_options),
93+
"--conf", "spark.executor.extraJavaOptions='{0}'".format(java_options),
9394
"pyspark-shell"
9495
]
9596
env["PYSPARK_SUBMIT_ARGS"] = " ".join(spark_args)

0 commit comments

Comments
 (0)