Execute multiple lines of spark scala code at a time
scala> :paste// Entering paste mode (ctrl-D to finish)val a = 10// Exiting paste mode, now interpreting.a: Int = 10scala>
In the spark-shell we need to write :paste press enter
Paste the code to be executed.
Then click on ctrl-D then code will be executed and you can see the output
Comments
Post a Comment