title: How to make spark write a _SUCCESS file for empty parquet output?
body: <p>One of my spark jobs is currently running over empty input and so produces no output. That's fine for now, but I still need to know that the spark job ran even if it produced no parquet output.</p>
  
  <p>Is there a way of forcing spark to write a <code>_SUCCESS</code> file even if there was no output at all? Currently it doesn't write anything to the directory where there would be output if there was input so I've no way of determining if there was a failure (this is part of a larger automated pipeline and so it keeps rescheduling the job because there's no indication it already ran).</p>