Azure HDI Spark. csv Azure Blob, : 23: : : sqlContext import sqlContext.implicits._ .
import sqlContext.implicits._
val flightDelayTextLines = sc.textFile("wasb://sparkcontainer@kademoappsparkstorage.blob.core.windows.net/sparkcontainer/Scored_FlightsAndWeather.csv")
AirportFlightDelays (OriginAirportCode: String, OriginLatLong: String, Month: Integer, Day: Integer, Hour: Integer, Carrier: String, DelayPredicted: Integer, DelayProbability: Double)
val flightDelayRowsWithoutHeader = flightDelayTextLines.map(s => s.split(",")). filter (line => line (0)! = "OriginAirportCode")
val resultDataFrame = flightDelayRowsWithoutHeader.map(s => AirportFlightDelays (s (0),// s (13) + "," + s (14),//Lat, Long s (1).toInt,//Month s (2).toInt,//Day s (3).toInt,//Hour s (5),//Carrier s (11).toInt,//DelayPredicted s (12).toDouble//DelayProbability)). toDF()
resultDataFrame.write.mode(""). saveAsTable ("FlightDelays") ? ,