Sparksubmit submit tasks to yarn, how to get to the task by means of code from the accept state transitions to the running state of time node and the node from the running status to the finish status, through sc before get appid, then through yarnclient to get the task status, but have not been able to listen to the accept state, is a great god, and of all stripes who have encountered similar problems