File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 109
109
fi
110
110
JAVA_VERSION=$( " $RUNNER " -version 2>&1 | grep ' version' | sed ' s/.* version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q' )
111
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
112
# Set JAVA_OPTS to be able to load native libraries and to set heap size
116
113
if [ " $JAVA_VERSION " -ge 18 ]; then
117
114
JAVA_OPTS=" $OUR_JAVA_OPTS "
Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ source "$FWDIR"/bin/utils.sh
45
45
SUBMIT_USAGE_FUNCTION=usage
46
46
gatherSparkSubmitOpts " $@ "
47
47
48
+ # SPARK-4161: scala does not assume use of the java classpath, so we need to add the "-Dscala.usejavacp=true"
49
+ SPARK_SUBMIT_OPTS=" $SPARK_SUBMIT_OPTS -Dscala.usejavacp=true"
50
+
48
51
function main() {
49
52
if $cygwin ; then
50
53
# Workaround for issue involving JLine and Cygwin
You can’t perform that action at this time.
0 commit comments