Spark InvalidInputException Error while loading CSV file in saprk

Getting error while uploading csv.

Make sure csv file is present in correct path of hdfs.

I am able to access the text file from the same location.

Do you mind if I ask the output of below command?
hdfs dfs -ls /user/gauravgangwar960/spark/

Hi see the directory.

There is a typo in filename.
It is baby-names.csv not baby_names.csv.

3 Likes