Getting error when running the command

@Anuj_singh To read a local file use below command

sc.textFile(“file:///path\filename”).first()