Not able to fetch any RDD records using .first() or .take commands.
The sc context is getting created successfully.
But after that when I try to see the first record or first 10 records…it gives the error given below.
I am using these commands in sequence:
$ pyspark --master yarn --conf spark.ui.port=10001
orderItems = sc.textFile("/public/retail_db/order_items")
for i in orderItems.take(10): print(i)