
This setting creates a single JAR with all dependencies. In the Create JAR from Modules window, ensure the extract to the target JAR option is selected, and then select OK. In the Select Main Class window, select the class that appears by default and then select OK. In the Create JAR from Modules window, select the folder icon in the Main Class text box.
Intellij appcode plus#
Do the following steps.įrom the File menu, select Project Structure.įrom the Project Structure window, navigate to Artifacts > the plus symbol + > JAR > From modules with dependencies. IntelliJ IDEA enables creation of JAR as an artifact of a project. Within \ add the following segments: 2.11.8Ĭreate the. find the rows which have only one digit in the 7th column in the CSV Val rdd = sc.textFile("wasb:///HdiSamples/HdiSamples/SensorSampleData/hvac/HVAC.csv") Val conf = new SparkConf().setAppName("WASBIOTest") And writes the output to /HVACOut under the default storage container for the cluster. Retrieves the rows that only have one digit in the sixth column.
Intellij appcode code#
This code reads the data from the HVAC.csv (available on all HDInsight Spark clusters). Replace the existing sample code with the following code and save the changes. :::image type="content" source="./media/apache-spark-create-standalone-application/configure-maven-download.png" alt-text="Configure Maven for automatic downloads" border="true":::įrom the left pane, navigate to src > main > scala >, and then double-click App to open App.scala. You'll then be returned to the project window. Select the Import Maven projects automatically checkbox. For those dependencies to be downloaded and resolved automatically, you must configure Maven.įrom the File menu, select Settings to open the Settings window.įrom the Settings window, navigate to Build, Execution, Deployment > Build Tools > Maven > Importing.
Intellij appcode update#
In the later steps, you update the pom.xml to define the dependencies for the Spark Scala application. You don't need this file for the application. Right-click MySpec, and then select Delete. Once the project has imported, from the left pane navigate to SparkSimpleApp > src > test > scala > com > microsoft > spark > example. The project will take a few minutes to import. Verify the project name and location, and then select Finish. Verify the settings and then select Next. The following values are used in this tutorial:

Provide relevant values for GroupId, and ArtifactId. This archetype creates the right directory structure and downloads the required default dependencies to write Scala program.Įxpand Artifact Coordinates. Select the Create from archetype checkbox.įrom the list of archetypes, select :scala-archetype-simple. and navigate to the Java installation directory. This example uses Spark 2.3.0 (Scala 2.11.8). If the Spark cluster version is earlier than 2.0, select Spark 1.x. The creation wizard integrates the proper version for Spark SDK and Scala SDK.

This field will be blank on your first use of IDEA. In the New Project window, provide the following information: Property
Intellij appcode install#
Select Install for the Scala plugin that is featured in the new window.Īfter the plugin installs successfully, you must restart the IDE. Select Install for Azure Toolkit for IntelliJ. On the welcome screen, navigate to Configure > Plugins to open the Plugins window.

See Installing the Azure Toolkit for IntelliJ.ĭo the following steps to install the Scala plugin: This article uses IntelliJ IDEA Community 2018.3.4.Īzure Toolkit for IntelliJ. This tutorial uses Java version 8.0.202.Ī Java IDE. For instructions, see Create Apache Spark clusters in Azure HDInsight.
