Why does a job fail with “No space left on device”, but df says otherwise?

后端 未结 8 1273
無奈伤痛
無奈伤痛 2020-12-04 15:51

When performing a shuffle my Spark job fails and says \"no space left on device\", but when I run df -h it says I have free space left! Why does this happen, a

8条回答
  •  我在风中等你
    2020-12-04 16:16

    By default Spark uses the /tmp directory to store intermediate data. If you actually do have space left on some device -- you can alter this by creating the file SPARK_HOME/conf/spark-defaults.conf and adding the line. Here SPARK_HOME is wherever you root directory for the spark install is.

    spark.local.dir                     SOME/DIR/WHERE/YOU/HAVE/SPACE
    

提交回复
热议问题