Search code examples
scalaapache-sparkspark-shell

Spark shell : How to copy multiline inside?


I have a Scala program that I want to execute using Spark shell, now when I copy paste into spark shell it doesn't work, I have to copy line by line inside.

How should I copy all the program inside the shell ?

Thanks.


Solution

  • just save your code to text file and use :load <path_to_your_script> in spark-shell