[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-20 Thread Hudson (JIRA)

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

Hudson commented on YARN-6159:
--

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11280 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/11280/])
YARN-6159. Documentation changes for TimelineV2Client (Naganarasimha G R 
(varunsaxena: rev 6ba61d20d3f65e40ea8e3a49d5beebe34f04aab4)
* (edit) 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServiceV2.md


> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Fix For: YARN-5355, YARN-5355-branch-2, 3.0.0-alpha3
>
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch, YARN-6159.v1.003.patch, YARN-6159.v1.004.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-20 Thread Varun Saxena (JIRA)

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

Varun Saxena commented on YARN-6159:


Committed to trunk, YARN-5355 and YARN-5355-branch-2.
Thanks Naga.

> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Fix For: YARN-5355, YARN-5355-branch-2, 3.0.0-alpha3
>
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch, YARN-6159.v1.003.patch, YARN-6159.v1.004.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-20 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on YARN-6159:
-

| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m 
17s{color} | {color:blue} Docker mode activated. {color} |
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 12m 
34s{color} | {color:green} trunk passed {color} |
| {color:green}+1{color} | {color:green} mvnsite {color} | {color:green}  0m 
14s{color} | {color:green} trunk passed {color} |
| {color:green}+1{color} | {color:green} mvnsite {color} | {color:green}  0m 
12s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
16s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black} 13m 56s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Docker |  Image:yetus/hadoop:a9ad5d6 |
| JIRA Issue | YARN-6159 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12853592/YARN-6159.v1.004.patch
 |
| Optional Tests |  asflicense  mvnsite  |
| uname | Linux 7eb0de437ec6 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 
15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | /testptch/hadoop/patchprocess/precommit/personality/provided.sh 
|
| git revision | trunk / 8035749 |
| modules | C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site U: 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site |
| Console output | 
https://builds.apache.org/job/PreCommit-YARN-Build/15014/console |
| Powered by | Apache Yetus 0.5.0-SNAPSHOT   http://yetus.apache.org |


This message was automatically generated.



> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch, YARN-6159.v1.003.patch, YARN-6159.v1.004.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-20 Thread Varun Saxena (JIRA)

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

Varun Saxena commented on YARN-6159:


+1 pending Jenkins.
Will commit it later today.

> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch, YARN-6159.v1.003.patch, YARN-6159.v1.004.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-20 Thread Varun Saxena (JIRA)

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

Varun Saxena commented on YARN-6159:


There is one more place where change is required. Just above the line you 
changed in the latest patch, we are referencing to 
AMRMClient#registerTimelineClient which needs to be changed.

> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch, YARN-6159.v1.003.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-19 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on YARN-6159:
-

| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m 
16s{color} | {color:blue} Docker mode activated. {color} |
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 13m 
59s{color} | {color:green} trunk passed {color} |
| {color:green}+1{color} | {color:green} mvnsite {color} | {color:green}  0m 
16s{color} | {color:green} trunk passed {color} |
| {color:green}+1{color} | {color:green} mvnsite {color} | {color:green}  0m 
13s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
17s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black} 15m 31s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Docker |  Image:yetus/hadoop:a9ad5d6 |
| JIRA Issue | YARN-6159 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12853483/YARN-6159.v1.003.patch
 |
| Optional Tests |  asflicense  mvnsite  |
| uname | Linux 36d23fc9eab5 3.13.0-105-generic #152-Ubuntu SMP Fri Dec 2 
15:37:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | /testptch/hadoop/patchprocess/precommit/personality/provided.sh 
|
| git revision | trunk / 172b23a |
| modules | C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site U: 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site |
| Console output | 
https://builds.apache.org/job/PreCommit-YARN-Build/15011/console |
| Powered by | Apache Yetus 0.5.0-SNAPSHOT   http://yetus.apache.org |


This message was automatically generated.



> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch, YARN-6159.v1.003.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-19 Thread Varun Saxena (JIRA)

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

Varun Saxena commented on YARN-6159:


[~Naganarasimha], thanks for the patch.

There is a minor issue in the patch. Post YARN-4675, 
AMRMClient#registerTimelineClient should be AMRMClient#registerTimelineV2Client 
instead.

> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Sub-task
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-17 Thread Varun Saxena (JIRA)

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

Varun Saxena commented on YARN-6159:


Yeah will commit it later today

> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Bug
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-16 Thread Naganarasimha G R (JIRA)

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

Naganarasimha G R commented on YARN-6159:
-

[~varun_saxena], now that YARN-4675 is in i think we can get this too !

> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Bug
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (YARN-6159) Documentation changes for TimelineV2Client

2017-02-13 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on YARN-6159:
-

| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m 
22s{color} | {color:blue} Docker mode activated. {color} |
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 12m 
56s{color} | {color:green} trunk passed {color} |
| {color:green}+1{color} | {color:green} mvnsite {color} | {color:green}  0m 
14s{color} | {color:green} trunk passed {color} |
| {color:green}+1{color} | {color:green} mvnsite {color} | {color:green}  0m 
12s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
16s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black} 14m 25s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Docker |  Image:yetus/hadoop:a9ad5d6 |
| JIRA Issue | YARN-6159 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12852505/YARN-6159.v1.002.patch
 |
| Optional Tests |  asflicense  mvnsite  |
| uname | Linux 8ed66484869b 3.13.0-105-generic #152-Ubuntu SMP Fri Dec 2 
15:37:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | /testptch/hadoop/patchprocess/precommit/personality/provided.sh 
|
| git revision | trunk / 71c23c9 |
| modules | C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site U: 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site |
| Console output | 
https://builds.apache.org/job/PreCommit-YARN-Build/14922/console |
| Powered by | Apache Yetus 0.5.0-SNAPSHOT   http://yetus.apache.org |


This message was automatically generated.



> Documentation changes for TimelineV2Client
> --
>
> Key: YARN-6159
> URL: https://issues.apache.org/jira/browse/YARN-6159
> Project: Hadoop YARN
>  Issue Type: Bug
>  Components: documentation
>Reporter: Varun Saxena
>Assignee: Naganarasimha G R
>Priority: Minor
> Attachments: TimelineServiceV2.html, YARN-6159.v1.001.patch, 
> YARN-6159.v1.002.patch
>
>
> Make documentation changes for TimelineV2Client i.e. to reflect changes made 
> in client API in YARN-4675.
> Also in TimelineServiceV2.md, under section Publishing application specific 
> data, we have the following code snippet. Here, 
> {{timelineClient.putEntitiesAsync(entity);}} should be 
> {{client.putEntitiesAsync(entity);}} instead.
> {code}
> // Create and start the Timeline client v.2
> TimelineClient client = TimelineClient.createTimelineClient(appId);
> client.init(conf);
> client.start();
> try {
>   TimelineEntity myEntity = new TimelineEntity();
>   myEntity.setEntityType("MY_APPLICATION");
>   myEntity.setEntityId("MyApp1")
>   // Compose other entity info
>   // Blocking write
>   client.putEntities(entity);
>   TimelineEntity myEntity2 = new TimelineEntity();
>   // Compose other info
>   // Non-blocking write
>   timelineClient.putEntitiesAsync(entity);
> } catch (IOException e) {
>   // Handle the exception
> } catch (RuntimeException e) {
> {code}
> Below can also be changed to client to keep it consistent.
> {code}
> amRMClient.registerTimelineClient(timelineClient);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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