I\'d like, from where I run a Spark job, to get the unique id of that job.
Via the Spark master node website, I can see that id. It\'s something like:
With the introduction of the spark: org.apache.spark.sql.SparkSession from Spark 2.0+ on use
spark: org.apache.spark.sql.SparkSession
scala> spark.sparkContext.applicationId res1: String = app-20170228091742-0025