-
Add
bin
folder of your Spark installation into the$PATH
environmental variable -
Add a
SBT Task
configuration and inputpackage
inside the Tasks box -
Uncheck the
Activate tool window
and pressApply
-
Add a
Shell Script
configuration and selectScript text
asExecute:
value -
Insert
spark-submit --class "<Your Class Package>.MainClass" --packages <REQUIRED PACKAGE TO RUN COMMA SEPARATED> --master "spark://<CLUSTER DOMAIN>:7077" target/scala-<SCALA VERSION>/<PROJECT NAME>_<SCALA VERSION>-<PROJECT VERSION>.jar
As Script text
and check the Execute in terminal
option. Fill <VALUES>
at previous command with appropriate values.
-
On
Before launch
section add theSBT Task
created on step 2. -
Press
OK
. -
Run application from
Select Run Configuration Box
on the top of the main window.
An example of
MainClass
on the previous command: