Skip to content

Instantly share code, notes, and snippets.

@samueleresca
Created September 8, 2019 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueleresca/358776472f364a125798130983334843 to your computer and use it in GitHub Desktop.
Save samueleresca/358776472f364a125798130983334843 to your computer and use it in GitHub Desktop.
using Microsoft.Spark.Sql;
namespace blog.apachesparkgettingstarted
{
class Program
{
static void Main(string[] args)
{
SparkSession spark = SparkSession
.Builder()
.AppName("My application")
.GetOrCreate();
DataFrame df = spark
.Read()
.Option("header", true)
.Csv("./data/seattle-cultural-space-inventory.csv");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment