use the spark-shell command and the shell will open
type :paste abd then paste your code, after control-d
Verstuurd vanaf mijn iPhone
You can first establish a scala ide to develop and debug your spark program, lets say, intellij idea or eclipse.
Date: 2015-03-06 09:19
Subject: Spark code development practice
I am new to Spark. I see every spark program has a main() function. I wonder if I can run the spark program directly, without using spark-submit. I think it will be easier for early development and debug.