File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 107
107
fi
108
108
109
109
# Set JAVA_OPTS to be able to load native libraries and to set heap size
110
- # SPARK-3936: scala does not assume use of the java classpath, so we need to add the "-Dscala.usejavacp=true"
111
- JAVA_OPTS=" -Dscala.usejavacp=true -XX:MaxPermSize=128m $OUR_JAVA_OPTS "
110
+ JAVA_OPTS=" -XX:MaxPermSize=128m $OUR_JAVA_OPTS "
112
111
JAVA_OPTS=" $JAVA_OPTS -Xms$OUR_JAVA_MEM -Xmx$OUR_JAVA_MEM "
113
112
114
113
# Load extra JAVA_OPTS from conf/java-opts, if it exists
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