Not able to read any file in the lab


#1

I’m not able to fetch any files in the lab.This error is being thrown. This is just one example. Files including products, orders etc. are also not being read in spark. Kindly advise.

val ordersitems=sc.textFile("/public/retail_db/orders_items")

error:
org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://nn01.itversity.com:8020/public/retail_db/orders_items


#2

@rachit92 Path is incorrect

It is /public/retail_db/order_items

PFA for reference