I am trying to read a text file from local path using spark. But it's throwing an exception.Error image
The code I used to read file is this:
val assetFile = sc.textFile(assetFilePath)
assestFilePath is a variable whichrepresent the path to somehere in my local machine.
val adFile = sc.textFile(adFilePath)
adFilePath is a variable whichrepresent the path to somehere in my local machine.