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

weiwenda commented on LIVY-544:
-------------------------------

you are right, to run statements in parallel safely. Need two queue in spark 
inside. One in FIFO strategy, the other one in FAIR strategy. Unless user 
explict tell livy run a statement in random order is ok,we should not submit 
statement to the FAIR queue.

> Statements in a Session must execute one by one which is time-consuming
> -----------------------------------------------------------------------
>
>                 Key: LIVY-544
>                 URL: https://issues.apache.org/jira/browse/LIVY-544
>             Project: Livy
>          Issue Type: Improvement
>          Components: REPL
>    Affects Versions: 0.5.0
>            Reporter: weiwenda
>            Priority: Minor
>              Labels: performance
>
> * when user's main usage scenario is not sensitive to the order of execution, 
> such as sql Session Kind, user may hope livy server can deal with multi 
> statement concurrentlly
>  * but as interpreterExecutor initialized as singleThreadExecutor, it's no 
> possible to satisfy such requirement.
> {quote}private val interpreterExecutor = 
> ExecutionContext.fromExecutorService(Executors.newSingleThreadExecutor())
> {quote}



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

Reply via email to