diff --git a/bin/spark-shell b/bin/spark-shell index 4a0670fc6c8aa..de8787f3d152c 100755 --- a/bin/spark-shell +++ b/bin/spark-shell @@ -45,6 +45,9 @@ source "$FWDIR"/bin/utils.sh SUBMIT_USAGE_FUNCTION=usage gatherSparkSubmitOpts "$@" +# SPARK-4161: scala does not assume use of the java classpath, so we need to add the "-Dscala.usejavacp=true" +SPARK_SUBMIT_OPTS="$SPARK_SUBMIT_OPTS -Dscala.usejavacp=true" + function main() { if $cygwin; then # Workaround for issue involving JLine and Cygwin