We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a6f04 commit 89e39e7Copy full SHA for 89e39e7
bin/spark-class
@@ -109,11 +109,14 @@ else
109
fi
110
JAVA_VERSION=$("$RUNNER" -version 2>&1 | grep 'version' | sed 's/.* version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q')
111
112
+# SPARK-3936: scala does not assume use of the java classpath, so we need to add the "-Dscala.usejavacp=true"
113
+OUR_JAVA_OPTS="$OUR_JAVA_OPTS -Dscala.usejavacp=true"
114
+
115
# Set JAVA_OPTS to be able to load native libraries and to set heap size
116
if [ "$JAVA_VERSION" -ge 18 ]; then
117
JAVA_OPTS="$OUR_JAVA_OPTS"
118
else
- JAVA_OPTS="-Dscala.usejavacp=true -XX:MaxPermSize=128m $OUR_JAVA_OPTS"
119
+ JAVA_OPTS="-XX:MaxPermSize=128m $OUR_JAVA_OPTS"
120
121
JAVA_OPTS="$JAVA_OPTS -Xms$OUR_JAVA_MEM -Xmx$OUR_JAVA_MEM"
122
0 commit comments