Created
September 8, 2019 13:27
-
-
Save samueleresca/358776472f364a125798130983334843 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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