소스 검색

YARN-6770. A small mistake in the example of TimelineClient. Contributed by Jinjiang Ling.

Naganarasimha 7 년 전
부모
커밋
ba5b056e8a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServer.md

+ 2 - 2
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);