[
https://issues.apache.org/jira/browse/TEZ-3078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123937#comment-15123937
]
Siddharth Seth commented on TEZ-3078:
-------------------------------------
This could be done via an API on the PluginContexts to allow killing the
currently running DAG - without killing the AppMaster. The error reported by
the plugin would be written to ATS as the reason for the DAG being marked as
FAILED/KILLED. If the AM is not killed, the client would receive an update via
regular monitoring. If the AM were to die, for some other reason - that would
be handled via the existing mechanism for such situations (fallback to ATS /
YARN).
In this particular scenario, Hive would need to consider how to handle
subsequent submissions - since they would also end up in the same state till
the external llap dameons are back up.
> 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)