[ 
https://issues.apache.org/jira/browse/LIVY-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16421902#comment-16421902
 ] 

Saisai Shao commented on LIVY-454:
----------------------------------

No, I don't think your problem can be solved  with sync or async launch of 
Spark applications, or it is related to sync or async.

> Creating batch sessions seems to be synchronous. Is there any plan to make it 
> asynchronous ?
> --------------------------------------------------------------------------------------------
>
>                 Key: LIVY-454
>                 URL: https://issues.apache.org/jira/browse/LIVY-454
>             Project: Livy
>          Issue Type: Question
>          Components: Batch, Server
>    Affects Versions: 0.4.0, 0.5.0
>            Reporter: kondziolka
>            Priority: Minor
>
> Creating batch sessions seems to be synchronous,  below one line from 
> _BatchSession.scala_ which is executed during creating batch session request.
> {code:java}
> sessionStore.save(BatchSession.RECOVERY_SESSION_TYPE, 
> s.recoveryMetadata){code}
> In case of session storage  basing on HDFS, time of creating batch session 
> (so waiting for answer from server) can be quite long, for example during 
> failover of some node in Hadoop cluster. It can lead to some integration 
> issues.
> Therefore, the question is are you going to provide asynchronous approach to 
> creating batch session ?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to