title: How to kill spark/yarn job via livy
body: <p>I am trying to submit spark job via livy using rest api. But if I run same script multiple time it runs multiple instance of a job with different job ID's. I am looking a way to kill spark/yarn job running with same name before starting a new one. Livy document says (<a href="https://github.com/cloudera/livy#batch" rel="nofollow noreferrer">https://github.com/cloudera/livy#batch</a>) delete the batch job, but livy sessions doesn't return application name, just application id is returned. </p>
  
  <p>Is there another way to do this ?</p>