From ba5b056e8a151fad9d7573c6e62cffc40cde7da3 Mon Sep 17 00:00:00 2001 From: Naganarasimha Date: Sun, 9 Jul 2017 21:28:24 +0530 Subject: [PATCH] YARN-6770. A small mistake in the example of TimelineClient. Contributed by Jinjiang Ling. --- .../hadoop-yarn-site/src/site/markdown/TimelineServer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServer.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServer.md index ac9b2ec9d10..f610cdefe48 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServer.md +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServer.md @@ -274,7 +274,7 @@ Here is an example: try { TimelineDomain myDomain = new TimelineDomain(); - myDomain.setID("MyDomain"); + myDomain.setId("MyDomain"); // Compose other Domain info .... client.putDomain(myDomain); @@ -282,7 +282,7 @@ Here is an example: TimelineEntity myEntity = new TimelineEntity(); myEntity.setDomainId(myDomain.getId()); myEntity.setEntityType("APPLICATION"); - myEntity.setEntityID("MyApp1") + myEntity.setEntityId("MyApp1"); // Compose other entity info TimelinePutResponse response = client.putEntities(entity);