can i save a file into the local system with the saveAsTextFile
syntax ?
This is how i'm writing the syntax to save a file: insert_df.rdd.saveAsTextFile("<local path>")
when i'm trying to do this i'm getting error as no permissions, but i have all the permissions to that specific local path, looks like it is treating the file as HDFS file.
I think you should try
"file:///local path"
instead of"/local path"
.