Zhijie Shen commented on YARN-2317:

[~gtCarrera9], thanks for updating this document, which I think will be really 
helpful to the new YARN app developers. I read through the updated document, 
and it looks good to me in general. I've some minor comments so far:

0. Resource Manager -> ResourceManager, Node Manager -> NodeManager, 
Application Master -> ApplicationMaster

1. application submission context
+  client can then set up application context, prepare the very first container 

2. Should ignore "Unix", it is expected to work on windows as well.
Unix environment settings

3. YARN cluster
+  YARN platform, and handles application execution. It performs operations in 

4. object
+  <<<AMRMClientAsync>>> objects, with event handling methods specified in a

5. Don't say event. Users don't need to know the internal, 4 callback methods?
+  <<<NMClientAsync>>>. Typical container events include start, stop, status

6. "Use Runnable objects to launch containers." can be removed, because it's 
not necessary to be on a separate thread.
+    Use Runnable objects to launch containers. Communicate with node managers

7. ContainerManagerProtocol
+      ApplicationMasterProtocol and ContainerManager) are still preserved. The

8. Is this still valid?
+  // Set the necessary security tokens as needed
+  //amContainer.setContainerTokens(containerToken);

9. Perhaps you want to mention unregistration after the AM determines the work 
is done.

10. In Useful Links section, how about linking to the analog webpages on this 
web site: YARN Architecture and Capacity Scheduler

11. In Sample Code section, maybe we don't want to talk about the IDE. And 
maybe call it sample application?

BTW, I looked into the updated webpage directly, instead of doing side-by-side 
comparison between the old and the new webpages. It would be great if you can 
comment what are the itemized significant changes in your patch, such that the 
community can be aware of them.

> Update documentation about how to write YARN applications
> ---------------------------------------------------------
>                 Key: YARN-2317
>                 URL: https://issues.apache.org/jira/browse/YARN-2317
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: documentation
>            Reporter: Li Lu
>            Assignee: Li Lu
>             Fix For: 2.6.0
>         Attachments: YARN-2317-071714.patch, YARN-2317-073014-1.patch, 
> YARN-2317-073014.patch
> Some information in WritingYarnApplications webpage is out-dated. Need some 
> refresh work on this document to reflect the most recent changes in YARN 
> APIs. 

This message was sent by Atlassian JIRA

Reply via email to