Https://www.udemy.com/course/cca-175-spark-and-hadoop-developer-python-pyspark/learn/lecture/14286636#announcements ordersDF = spark.read.csv('Users/itversity/Research/data/retail_db/orders') the query is not executing

Not able to create a data frame using the given query
ordersDF = spark.read.csv(‘Users/itversity/Research/data/retail_db/orders’)
the error is invalid path
Could you please resolve this issue

Hi @dssreddy,
You have not permission to access other’s hdfs location.

there is a public directory in hdfs you can read dataset from there-
hadoop fs -ls /public

try below command to create orders DataFrame-
ordersDF = spark.read.csv('/public/retail_db/orders')

Thank You
It is working