Also just tried the below and got the state. It ended up in "FAILED" stated when I expected it to be in "CANCELLED" state. Also from the docs it is not clear if it kills the session or the job? if it kills the session I can't spawn any other Job. Sorry cancelling job had been a bit confusing for me.DELETE /sessions/0
On Thu, Jan 18, 2018 at 5:55 PM, kant kodali <kanth...@gmail.com> wrote: > oh this raises couple questions. > > 1) Is there a programmatic way to cancel a job? > > 2) is there any programmatic way to get session id? If not, how do I get > a sessionId when I spawn multiple jobs or multiple sessions? > > > On Thu, Jan 18, 2018 at 5:39 PM, Alex Bozarth <ajboz...@us.ibm.com> wrote: > >> You make a DELETE call as detailed here: http://livy.apache.org/docs/la >> test/rest-api.html#response >> >> >> *Alex Bozarth* >> Software Engineer >> Spark Technology Center >> ------------------------------ >> *E-mail:* *ajboz...@us.ibm.com* <ajboz...@us.ibm.com> >> *GitHub: **github.com/ajbozarth* <https://github.com/ajbozarth> >> >> >> 505 Howard Street >> <https://maps.google.com/?q=505+Howard+Street+San+Francisco,+CA+94105+United+States&entry=gmail&source=g> >> San Francisco, CA 94105 >> <https://maps.google.com/?q=505+Howard+Street+San+Francisco,+CA+94105+United+States&entry=gmail&source=g> >> United States >> <https://maps.google.com/?q=505+Howard+Street+San+Francisco,+CA+94105+United+States&entry=gmail&source=g> >> >> >> >> [image: Inactive hide details for kant kodali ---01/18/2018 05:34:07 >> PM---Hi All, I was able to submit a streaming job to livy however]kant >> kodali ---01/18/2018 05:34:07 PM---Hi All, I was able to submit a streaming >> job to livy however I wasn't able to find >> >> From: kant kodali <kanth...@gmail.com> >> To: user@livy.incubator.apache.org >> Date: 01/18/2018 05:34 PM >> Subject: How to cancel the running streaming job using livy? >> ------------------------------ >> >> >> >> Hi All, >> >> I was able to submit a streaming job to livy however I wasn't able to >> find any way to cancel the running the job? Please let me know. >> >> Thanks! >> >> >> >