Quantcast
Channel: Spark & Scala: Read in CSV file as DataFrame / Dataset - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Boern for Spark & Scala: Read in CSV file as DataFrame / Dataset

Spark 2.0+Since the databricks/spark-csv has been integrated into Spark, reading .CSVs is pretty straight forward using the SparkSessionval spark = .builder() .master("local") .appName("Word Count")...

View Article



Spark & Scala: Read in CSV file as DataFrame / Dataset

coming from the R world I want to import an .csv into Spark (v.1.6.1) using the Scala Shell (./spark-shell)My .csv has a header and looks...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images