![]() Our hello world example doesn’t display “Hello World” text instead it creates a SparkSession and displays Spark app name, master and deployment mode to console. Now create the Spark Hello world program. 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.12.12.Now, we need to make some changes in the pom.xml file, you can either follow the below instructions or download the pom.xml file GitHub project and replace into your pom.xml file. Choose the Scala version 2.12.12 (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 the below window,Ĥ. IntelliJ will prompt you as shown below to Setup Scala SDK.Ģ. ![]() After plugin install, restart the IntelliJ IDE. Click on Install to install the Scala plugin.Ĥ.Select the Plugins option from the left panel.Open File > Settings (or using shot keys Ctrl + Alt + s ).You will see the project created on IntelliJ and shows the project structure on left Project panel. On next screen, review the options for artifact-id and group-id I am naming my project as spark-hello-world-example.Ħ. In the next window, enter the project name. ![]() Since we have selected Scala archetypes, it downloads all Scala dependencies and enables IntelliJ to write Scala code.ĥ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |