title: How can I obtain the DAG of an Apache Spark job without running it?
body: <p>I have some Scala code that I can run with Spark using spark-submit. From what I understood, Spark creates a DAG in order to schedule the operation.</p>
  
  <p>Is there a way to retrieve this DAG without actually performing the heavy operations, e.g. just by analyzing the code ?</p>
  
  <p>I would like a useful representation such as a data structure or at least a written representation, not the DAG visualization.</p>