Getting Error while reading json file using Spark Data Frames

Hi, My gateway node is : g01.itversity.com

I am getting the below error when I am trying to read json file. How to resolve???

orderItems = spark.read.json("/public/retails_db_json/order_items")
Traceback (most recent call last):
File “”, line 1, in
File “/opt/spark2-client/python/pyspark/sql/readwriter.py”, line 274, in json
return self._df(self._jreader.json(self._spark._sc._jvm.PythonUtils.toSeq(path)))
File “/opt/spark2-client/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py”, line 1257, in call
File “/opt/spark2-client/python/pyspark/sql/utils.py”, line 69, in deco
raise AnalysisException(s.split(’: ‘, 1)[1], stackTrace)
pyspark.sql.utils.AnalysisException: u’Path does not exist: hdfs://m01.itversity.com:9000/public/retails_db_json/order_items;’

Hi @Hemalatha_Bhupathira

It is retail_db_json not retails_db_json check with this.