# Pastebin dnf3ZJu8 In my case, this was happening when I was trying to save a file to my local filesystem instead of the file system that is accessible from the Spark cluster. The file is written by the Spark worker nodes, not by the PySpark client, and so it should be output to a filesystem that is accessible both by the worker nodes and the client.