Skip to content

Commit c2a6f04

Browse files
committed
Spark shell class path is not correctly set if "spark.driver.extraClassPath" is set in defaults.conf
1 parent d8f84f2 commit c2a6f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/spark-class

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ JAVA_VERSION=$("$RUNNER" -version 2>&1 | grep 'version' | sed 's/.* version "\(.
113113
if [ "$JAVA_VERSION" -ge 18 ]; then
114114
JAVA_OPTS="$OUR_JAVA_OPTS"
115115
else
116-
JAVA_OPTS="-XX:MaxPermSize=128m $OUR_JAVA_OPTS"
116+
JAVA_OPTS="-Dscala.usejavacp=true -XX:MaxPermSize=128m $OUR_JAVA_OPTS"
117117
fi
118118
JAVA_OPTS="$JAVA_OPTS -Xms$OUR_JAVA_MEM -Xmx$OUR_JAVA_MEM"
119119

0 commit comments

Comments
 (0)