.NET for Apache Spark™ Tutorial - Get started in 10 minutes

Create your app

In your command prompt, run the following command to create your app:

In your terminal, run the following command to create your app:

Command prompt
dotnet new console -f netcoreapp3.1 -o mySparkApp

Then, navigate to the new directory created by the previous command:

Command prompt
cd mySparkApp

The dotnet command creates a new application of type console for you. The -o parameter creates a directory named mySparkApp where your app is stored, and populates it with the required files. The cd mySparkApp command puts you into the newly created app directory.

Install the NuGet package

To use .NET for Apache Spark in an app, you need to add the Microsoft.Spark package to your project. In your command prompt, run the following command:

To use .NET for Apache Spark in an app, you need to add the Microsoft.Spark package to your project. In your terminal, run the following command:

Command prompt
dotnet add package Microsoft.Spark --version 1.0.0
Continue