Not able to read csv files


#1

Hi ,

Please let me know,what is error in path to read csv file.


Please responde to theread
#2

Please put the data in HDFS and change the location of the file to the HDFS location, It should work.


#3

HDFS?
I dodn’t get that one? This is the HDFS , right?


#4

Please let me know, what is location of HDFS?


#5

Please reply. I am not aware with HDFS location, and your delay in repsponse is throwing me back from my learning schedule.

I would be great if you could please reply or increase support persons to do the job.


#6

@Gautam_Jain , your HDFS location would be /user/gautamjain45920/

Copy the file from local linux file system to hdfs first using command :
hdfs dfs -copyFromLocal filenamewithpath

var df = sqlContext.read.csv("/user/gautamjain45920/part-0000.csv")


#7

Thanks Ankit.
Thanks for response. I will try that.