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

Siddharth Seth commented on TEZ-3078:
-------------------------------------

Reverted back to the old title. Posting a patch to TEZ-3029 which allows for 
errors to be reported which KILL the current running DAG. That should provide 
some information for now as the client queries for dag state.
This jira can be used to make changes so that the client finds out about the 
AMState, and potentially a heartbeat mechanism to notify clients when there is 
no active poll. A heartbeat between the client and AM is also useful for 
killing AMs immediately after the client goes down, instead of waiting for a 
potentially infinite configured wait time.

> Provide a mechanism for AM to let Client know about the reason for failure
> --------------------------------------------------------------------------
>
>                 Key: TEZ-3078
>                 URL: https://issues.apache.org/jira/browse/TEZ-3078
>             Project: Apache Tez
>          Issue Type: Improvement
>    Affects Versions: 0.8.3
>            Reporter: Prasanth Jayachandran
>
> When working on HIVE-12959 for LLAP, the requirement is when we submit a 
> query to LLAP task scheduler and if there are no LLAP daemons we should fail 
> the query instead of waiting indefinitely for daemons to show up. For this to 
> work, the task scheduler has to provide a mechanism to let the AM know that 
> the scheduler service cannot proceed further as there are no daemons running. 
> Currently there is no way for the task scheduler to let AM know about this 
> information. The only way right now is to send back exception using 
> TaskSchedulerContext.onError() API. This will kill the AM but AM will restart 
> to recover the DAG. It will be better if there a way to let AM know about 
> daemon status via some status response based on which AM should avoid 
> restarting. It will be even better if we can provide a way for AM to 
> communicate this information back to the client (hive CLI or HiveServer2).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to