tez-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jianfeng (Jeff) Zhang" <jzh...@hortonworks.com>
Subject Re: Communication between YARN and Tez.
Date Wed, 25 Mar 2015 08:44:28 GMT
Hi Alok,

Tez is one kind of yarn application. So Tez use the standard yarn protocol
to communicate with RM & NN (submit/register/unregister app & launch
Regarding your question on the task completion & task submission. This is
a tez propriety protocol TezTaskUmbilicalProtocol between tez AM
(DAGAppMaster) and tez workers (TezChild)

Paste the code as below,

  1) TezChild pull task from Tez AM (TezTaskUmbilicalProtocol.getTask)
  2) Tez AM get the task status from TezChild through periodic heartbeat

public interface TezTaskUmbilicalProtocol extends VersionedProtocol {

  public static final long versionID = 19L;

  ContainerTask getTask(ContainerContext containerContext) throws

  boolean canCommit(TezTaskAttemptID taskid) throws IOException;

  public TezHeartbeatResponse heartbeat(TezHeartbeatRequest request)
      throws IOException, TezException;


Hope it helps you.

Best Regard,
Jeff Zhang

On 3/25/15, 4:11 PM, "alokasok" <alokasok@buffalo.edu> wrote:

>I was trying to get an idea about how the communication is handled
>between Tez and Yarn for task completion and task submission.Is there
>any documentation in this regards to this other than the java doc for
>the project.
>Alok Asok

View raw message