I have this code:
def main(args: Array[String]): Unit = {
// Creation of Spark Session
implicit val sparkSession = SparkSession.builder().appName("seco_trial").getOrCreate()
println("test")
val df = sparkSession.read.format("csv").option("header", "true").load("D:/Userfiles/mir/Downloads/extract_sec_mav2.csv")
println("test2")
the line where i create the val df gives me the following error:
2018-09-17 14:27:24 WARN FileStreamSink:66 - Error while looking for metadata directory. Exception in thread "main" java.io.IOException: No FileSystem for scheme: D at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2660) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2667) [...]
Lets exclude wrong path as a problem. My file correctly has the extension .csv
can you please tell me what is the problem? why cant i load the file?