Thanks Ryan. I had bee thinking of a Batch Session as more like a Batch 
Statement. This should help a lot.

From: Ryan Skraba <r...@skraba.com>
Sent: Thursday, July 18, 2019 3:20 AM
To: user@livy.incubator.apache.org
Subject: [EXT] Re: List of Batch States?

Hello!  Are you referring to the SessionStates[1] that might be possible to see 
in a batch job (not interactive session or statement)?

The code that describes the possible state changes and how they map to Spark 
YARN states is here[2].

To summarize:

* initial state can be starting or recovering
* running
* success
* killed
* dead

All of the session states (including interactive sessions) are listed just 
above the statement states in your link[3].

Hope this helps!  Ryan

[1]: 
https://github.com/apache/incubator-livy/blob/551dd5c27f05c35c75015c7dae9153e2a7f23089/core/src/main/scala/org/apache/livy/sessions/SessionState.scala#L33<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fincubator-livy%2Fblob%2F551dd5c27f05c35c75015c7dae9153e2a7f23089%2Fcore%2Fsrc%2Fmain%2Fscala%2Forg%2Fapache%2Flivy%2Fsessions%2FSessionState.scala%23L33&data=02%7C01%7Cpwicks%40micron.com%7Ccbedf295e8fd4d7cd9dc08d70b612cde%7Cf38a5ecd28134862b11bac1d563c806f%7C0%7C0%7C636990384315066715&sdata=WRTP3gDxX55D52XW%2FQ0thSU%2FA2dv3jOGrfS6EvXMo7c%3D&reserved=0>
[2]: 
https://github.com/apache/incubator-livy/blob/80daadef02ae57b2a5487c6f92e0f7df558d4864/server/src/main/scala/org/apache/livy/server/batch/BatchSession.scala#L183<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fincubator-livy%2Fblob%2F80daadef02ae57b2a5487c6f92e0f7df558d4864%2Fserver%2Fsrc%2Fmain%2Fscala%2Forg%2Fapache%2Flivy%2Fserver%2Fbatch%2FBatchSession.scala%23L183&data=02%7C01%7Cpwicks%40micron.com%7Ccbedf295e8fd4d7cd9dc08d70b612cde%7Cf38a5ecd28134862b11bac1d563c806f%7C0%7C0%7C636990384315066715&sdata=lvjWsbXMEEhRDAp0iZ2%2FHA%2FC6seXEAf6U80pu1%2FVdsY%3D&reserved=0>
[3]: 
https://livy.incubator.apache.org/docs/latest/rest-api.html#session-state<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivy.incubator.apache.org%2Fdocs%2Flatest%2Frest-api.html%23session-state&data=02%7C01%7Cpwicks%40micron.com%7Ccbedf295e8fd4d7cd9dc08d70b612cde%7Cf38a5ecd28134862b11bac1d563c806f%7C0%7C0%7C636990384315076713&sdata=odMDcs84YAB6s0CvgBPFFlHOHXy7zUDqYRAgRkTsFyw%3D&reserved=0>



On Wed, Jul 17, 2019 at 5:33 PM Peter Wicks (pwicks) 
<pwi...@micron.com<mailto:pwi...@micron.com>> wrote:
Can someone point me to, or provide, a list of Livy Batch states? I couldn’t 
find this detail in the docs: 
https://livy.incubator.apache.org/docs/latest/rest-api.html#batch<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivy.incubator.apache.org%2Fdocs%2Flatest%2Frest-api.html%23batch&data=02%7C01%7Cpwicks%40micron.com%7Ccbedf295e8fd4d7cd9dc08d70b612cde%7Cf38a5ecd28134862b11bac1d563c806f%7C0%7C0%7C636990384315076713&sdata=4LMDutpEYp3HUVObvFRf34o5ssq8PM9XFj35LAiqwkM%3D&reserved=0>.

Is it a subset of the Statement States? I wasn’t sure about “waiting”.


  *   waiting
  *   running
  *   available
  *   error
  *   cancelling
  *   cancelled

Thanks,
  Peter

Reply via email to