Re: user defined sessionId / URI for Livy sessions

2017-09-13 Thread Meisam Fathi
> > > E.g. something like this may be useful in an active-active livy > configuration because its not clear how sequential numeric id's would work > in that context. Perhaps UUID's would also suffice for the active-active > setup. > For active-active, sequential numeric IDs could be generated by `

Re: user defined sessionId / URI for Livy sessions

2017-09-12 Thread Bikas Saha
mment there with a grain of salt; at the time Livy was being targeted at mostly being From: Marcelo Vanzin To: dev@livy.incubator.apache.org Cc: "u...@livy.incubator.apache.org" Date: 09/12/2017 02:40 PM Subject: Re: user defined sessionId / URI for Livy sessions ___

Re: user defined sessionId / URI for Livy sessions

2017-09-12 Thread Alex Bozarth
there any interest in adding this feature to Livy? I can send a PR From: Meisam Fathi To: "u...@livy.incubator.apache.org" , " dev@livy.incubator.apache.org" Date: 09/11/2017 10:23 AM Subject: Re: user defined sessionId / URI for Livy sessions + dev Is there any i

Re: user defined sessionId / URI for Livy sessions

2017-09-12 Thread Marcelo Vanzin
-09/11/2017 10:23:49 > AM---+ dev Is there any interest in adding this feature to Livy?]Meisam > Fathi ---09/11/2017 10:23:49 AM---+ dev Is there any interest in adding > this feature to Livy? I can send a PR > > From: Meisam Fathi > To: "u...@livy.incubator.apache.org"

Re: user defined sessionId / URI for Livy sessions

2017-09-11 Thread Saisai Shao
I see. So based on this, we should manage a data structure in Livy Server to keep all the live sessions' name. Also regarding to session recovery, we should persist this structure to the reliable storage and recover after restart. I'm not pretty sure if it is a good feature or not. First because w

Re: user defined sessionId / URI for Livy sessions

2017-09-11 Thread Meisam Fathi
> If we're using session name, how do we guarantee the uniqueness of this > name? > If the requested session name already exist, Livy returns an error and does not create the session. Thanks, Meisam

Re: user defined sessionId / URI for Livy sessions

2017-09-11 Thread Saisai Shao
y?]Meisam > Fathi ---09/11/2017 10:23:49 AM---+ dev Is there any interest in adding > this feature to Livy? I can send a PR > > From: Meisam Fathi > To: "u...@livy.incubator.apache.org" , " > dev@livy.incubator.apache.org" > Date: 09/11/2017 10:23 AM

Re: user defined sessionId / URI for Livy sessions

2017-09-11 Thread Alex Bozarth
, "dev@livy.incubator.apache.org" Date: 09/11/2017 10:23 AM Subject: Re: user defined sessionId / URI for Livy sessions + dev Is there any interest in adding this feature to Livy? I can send a PR Ideally, it would be helpful if we could mint a session ID with a PUT >

Re: user defined sessionId / URI for Livy sessions

2017-09-11 Thread Meisam Fathi
+ dev Is there any interest in adding this feature to Livy? I can send a PR Ideally, it would be helpful if we could mint a session ID with a PUT > request, something like PUT /sessions/foobar, where "foobar" is the newly > created sessionId. > > I suggest we make session names unique and nonnumer