org.apache.spark.shuffle.MetadataFetchFailedException: Missing an output location for shuffle 0
Why do Spark jobs fail with org.apache.spark.shuffle.MetadataFetchFailedException: Missing an output location for shuffle 0 in speculation mode?