title: How to get job or application IDs from SparkSession?
body: <p>I know how to get jobID / ApplicationID from <code>sparkContext</code>. Is there a way to get jobID / ApplicationID from <code>SparkSession</code>?</p>
  
  <p>In <code>sparkContext</code>, we can </p>
  
  <pre><code>sc.applicationId
  res0: String = app-20150224184813-11531
  </code></pre>