javadba javadba - 3 months ago 7
Scala Question

Run startup commands in spark-shell

The

-i
option for
scala
repl does not work with
spark-shell
: it silently ignores the option. Specifically:

spark-shell -i ~/.scalarc


does not load the
~/.scalarc
file

Is there another means to load startup (scala) commands into the spark-repl?

Answer

The workaround is to use :load

:load /Users/steve/.scalarc

spark-shell does not support some command line parameters nor does it support :power mode .