
Now you should see the below message in the console.

In case you still get errors during the running of the Spark application, please restart the IntelliJ IDE and run the application again. This should display the below output on the console. Now run the Spark application SparkSessionTest program.ĥ. Finally, you should see BUILD SUCCESS as below.Ĥ. This Installs all Maven dependencies and builds your project. Select Maven from the right top corner, select M, and type or select mvn clean install. Sometimes the dependencies in pom.xml are not automatically loaded hence, re-import the dependencies or restart the IntelliJ. Val sparkSession2 = SparkSession.builder()

Our hello world example doesn’t display “Hello World” text instead it creates a SparkSession and displays the Spark app name, master, and deployment mode to the console. Now create the Scala class SparkSessionTest program, I will treat this as a Hello World Program for Spark. Create Spark Hello world Application on IntelliJġ. Add Spark Dependencies to Maven pom.xml Fileĩ. Now delete the following from the project workspace.Ĩ. First, change the Scala version to the latest version, I am using 2.13.0 Now, we need to make some changes to the pom.xml file, you can either follow the below instructions or download the pom.xml file GitHub project and replace it with your pom.xml file.ġ. Choose Scala version 2.13.0 (latest at the time of writing this article) 6. From the next window select the Download option andĥ. Select Setup Scala SDK, it prompts you to the below window,Ĥ. If this doesn’t show up then You can add Scala SDK as a global library for your project in ` Project Settings -> Platform Settings / Global Libraries -> Add -> Scala SDK -> Download`Ģ. After restart, IntelliJ will prompt you as shown below to Setup Scala SDK. After plugin installation, restart the IntelliJ IDE.
