You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jian He (JIRA)" <ji...@apache.org> on 2016/09/12 08:27:21 UTC

[jira] [Comment Edited] (YARN-5610) Initial code for native services REST API

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

Jian He edited comment on YARN-5610 at 9/12/16 8:26 AM:
--------------------------------------------------------

Thanks, Gour.
bq.  So according to an app-owner, it is STARTED but not RUNNING yet.
I would prefer rename as such pair STARTED -> READAY, or RUNNING -> READY 
bq.  The swagger definition defines this.
Do you mean swagger has such a date type in string format ?  which one is this? I couldn't find it in swagger documentation. 
bq. why the changes needed in hadoop-project/pom.xml
I meant what is this change used for ?
{code}
  <scm>
    <url>http://git-wip-us.apache.org/repos/asf/hadoop.git</url>
    <connection>
      scm:git:http://git-wip-us.apache.org/repos/asf/hadoop.git
    </connection>
    <developerConnection>
      scm:git:http://git-wip-us.apache.org/repos/asf/hadoop.git
    </developerConnection>
  </scm>
{code}
bq. appOptions and uniqueGlobalPropertyCache are required as appOptions is the way application configuration properties are injected into Slider client.
I see.  Then the   {{if (uniqueGlobalPropertyCache == null)}} condition is not needed, because uniqueGlobalPropertyCache is initialized  as not null.
{code}
private void addOptionsIfNotPresent(List<String> options,
    Set<String> uniqueGlobalPropertyCache, String key, String value) {
  if (uniqueGlobalPropertyCache == null) {
    options.addAll(Arrays.asList(key, value));
  }
{code}


bq. In case, of complex and nested applications some components will be by themselves full blown and independent applications itself. The APPLICATION type artifact refers to such external application definitions
Then, what are the other parameters in Component used for in this case ? like number_of_containers, launch_command, resource etc.


was (Author: jianhe):
Thanks, Gour.
bq.  So according to an app-owner, it is STARTED but not RUNNING yet.
I would prefer rename as such pair STARTED -> READAY, or RUNNING -> READY 
bq.  The swagger definition defines this.
Do you mean swagger has such a date type in string format ?  which one is this? I couldn't find it in swagger documentation. 
bq. why the changes needed in hadoop-project/pom.xml
I meant what is this change used for ?
{code}
  <scm>
    <url>http://git-wip-us.apache.org/repos/asf/hadoop.git</url>
    <connection>
      scm:git:http://git-wip-us.apache.org/repos/asf/hadoop.git
    </connection>
    <developerConnection>
      scm:git:http://git-wip-us.apache.org/repos/asf/hadoop.git
    </developerConnection>
  </scm>
{code}
bq. appOptions and uniqueGlobalPropertyCache are required as appOptions is the way application configuration properties are injected into Slider client.
I see.  Then the   {{if (uniqueGlobalPropertyCache == null) }} condition is not needed, because uniqueGlobalPropertyCache is initialized  as not null.
{code}
private void addOptionsIfNotPresent(List<String> options,
    Set<String> uniqueGlobalPropertyCache, String key, String value) {
  if (uniqueGlobalPropertyCache == null) {
    options.addAll(Arrays.asList(key, value));
  }
{code}


bq. In case, of complex and nested applications some components will be by themselves full blown and independent applications itself. The APPLICATION type artifact refers to such external application definitions
Then, what are the other parameters in Component used for in this case ? like number_of_containers, launch_command, resource etc.

> Initial code for native services REST API
> -----------------------------------------
>
>                 Key: YARN-5610
>                 URL: https://issues.apache.org/jira/browse/YARN-5610
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Gour Saha
>            Assignee: Gour Saha
>         Attachments: YARN-4793-yarn-native-services.001.patch, YARN-5610-yarn-native-services.002.patch
>
>
> This task will be used to submit and review patches for the initial code drop for the native services REST API 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org