I'm trying to read a file from hdfs using
var lines = Source.fromFile("hdfs://nameservice1/location/report_2018-06-03.csv").getLines.toArray
however I keep getting the error
java.io.FileNotFoundException: hdfs:/nameservice1/location/report_2018-06-03.csv (No such file or directory)
Is there a different command to read csv's from hdfs or is there a workaround for this?
Edit: Just a clarification, I just can't get it to look in hdfs://nameservice...