hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naganarasimha G R (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (YARN-6159) In timeline v2 documentation, the code snippet given for creating timeline client has a mistake
Date Wed, 08 Feb 2017 13:21:42 GMT

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

Naganarasimha G R reassigned YARN-6159:
---------------------------------------

    Assignee: Naganarasimha G R

> In timeline v2 documentation, the code snippet given for creating timeline client has
a mistake
> -----------------------------------------------------------------------------------------------
>
>                 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: Trivial
>
> 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message