spark Yarn mode how to get applicationId from spark-submit
Here are the approaches that I used to achieve this:
- Save the application Id to HDFS file. (Suggested by @zhangtong in comment).
- Send an email alert with applictionId from driver.
Here are the approaches that I used to achieve this: