Permission issue while saving the file on home directory- Pyspark


Hi Team,

I am trying the save the file using pyspark in my home directory. Gettng below error:
Caused by: org.apache.hadoop.ipc.RemoteException( Permission denied: user=learnspark101, access=WRITE, inode="/home/learnspark101/temp/revenue/_temporary/0":hdfs:hdfs:drwxr-xr-x

Code used to save the file is:

oMap s an RDD with order_id and revenue.

Please help. Thanks in Advance.


Hi @My_Learning

If you are saving into your local machine use this command