On 18/12/2017 04:03, Meisam Fathi wrote:
>  
>
>     1) I have a couple of livy servers that are submitting jobs and
>     say one of them crashes the session id's again start from 0 which
>     can coincide with the non-faulty running livy servers. I think it
>     would be nice to have session id's as UUID. isn't it?
>
>  
> If you enable recovery, the session IDs won't restart from 0 after
> recovery.
+1 for changing the ids, incremental ids are not a good practice from an
API design standpoint (and security). UUIDs are easy to implement and
make it easier to avoid confusion.
>  
>
>     2) Is there a way to get job progress periodically or get notified
>     if it dies and so on ?
>
>
>  In the REST API, not as far as I know. You have to poll session/job
> status.
>
> Thanks,
> Meisam

Reply via email to