world,
How to use Spark-Scala to download a CSV file from the web and load the file into a spark-csv DataFrame?
Currently I depend on curl in a shell command
val content = scala.io.Source.fromURL("http://ichart.finance.yahoo.com/table.csv?s=FB").mkString val list = content.split("\n").filter(_ != "") val rdd = sc.parallelize(list) val df = rdd.toDF