Resending to both aliases Hi,
Would be good to understand how this feature would be useful other than providing users a handle that they can rely on as a 3rd party. 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. Maybe the use case for user defined sessions could be to integrate with other software that could reliably use the user defined name for its internal operations instead of using a livy session id thats not guaranteed to be unique. Curious as to what motivated choosing sequential numbers for livy sessions? Bikas ________________________________ From: Alex Bozarth <[email protected]> Sent: Tuesday, September 12, 2017 2:44 PM To: [email protected] Cc: [email protected] Subject: Re: user defined sessionId / URI for Livy sessions That's fair, I'll still withhold judgement until I see an impl though. Alex Bozarth Software Engineer Spark Technology Center ________________________________ E-mail: [email protected]<mailto:[email protected]> GitHub: github.com/ajbozarth<https://github.com/ajbozarth> 505 Howard Street San Francisco, CA 94105 United States [Inactive hide details for Marcelo Vanzin ---09/12/2017 02:40:33 PM---BTW take my comment there with a grain of salt; at the tim]Marcelo Vanzin ---09/12/2017 02:40:33 PM---BTW take my comment there with a grain of salt; at the time Livy was being targeted at mostly being From: Marcelo Vanzin <[email protected]> To: [email protected] Cc: "[email protected]" <[email protected]> Date: 09/12/2017 02:40 PM Subject: Re: user defined sessionId / URI for Livy sessions ________________________________ BTW take my comment there with a grain of salt; at the time Livy was being targeted at mostly being hidden from users, making such a feature not make much sense in Livy itself. But things may have changed since then, especially as people started using it more. On Mon, Sep 11, 2017 at 1:51 PM, Alex Bozarth <[email protected]<mailto:[email protected]>> wrote: I would agree with Marcelo's comment the JIRA that this isn't a good feature for livy, but I'll take a look at your impl if you open a PR and see if it changes my mind. Alex Bozarth Software Engineer Spark Technology Center ________________________________ E-mail: [email protected]<mailto:[email protected]> GitHub: github.com/ajbozarth<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ajbozarth&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=S1_S7Dymu4ZL6g7L21O78VQZ53vEnAyZ-cx37DPYDyo&m=VdRly7JyucmN1BnLWxZGFJY-iemUUfqUWOlQqaGAA54&s=047UIBZ1bxlXg56NfOnZ2UsJMzTJTSJ34UGFbLo3GbA&e=> 505 Howard Street San Francisco, CA 94105 United States 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 <[email protected]<mailto:[email protected]>> To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> 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 > request, something like PUT /sessions/foobar, where "foobar" is the newly > created sessionId. > > I suggest we make session names unique and nonnumeric values (to guarantee a session name does not clash with another session name or session ID). Design doc: https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_meisam_incubator-2Dlivy_wiki_Design-2Ddoc-2Dfor-2DLivy-2D41-3A-2DAccessing-2Dsessions-2Dby-2Dname&d=DwIBaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=S1_S7Dymu4ZL6g7L21O78VQZ53vEnAyZ-cx37DPYDyo&m=bUJg_csAaA5f2DPiMkjU-juQkf5Q2FMYtA5kv5sqiMM&s=xTiY52FMWMdTRgCmiNRWe6yEoCchxKNxQrYPEkPupbw&e= JIRA ticket: https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_LIVY-2D41&d=DwIBaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=S1_S7Dymu4ZL6g7L21O78VQZ53vEnAyZ-cx37DPYDyo&m=bUJg_csAaA5f2DPiMkjU-juQkf5Q2FMYtA5kv5sqiMM&s=lFed2hYlDA_wUo94RWUAw7N01lSN368P-ABmP_npWrM&e= Thanks, Meisam -- Marcelo
