XMLWordPrintableJSON

Details

    • Reviewed

    Description

      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.

          // 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) {
      

      Below can also be changed to client to keep it consistent.

          amRMClient.registerTimelineClient(timelineClient)Íž
      

      Attachments

        1. YARN-6159.v1.004.patch
          5 kB
          Naganarasimha G R
        2. YARN-6159.v1.003.patch
          5 kB
          Naganarasimha G R
        3. YARN-6159.v1.002.patch
          4 kB
          Naganarasimha G R
        4. YARN-6159.v1.001.patch
          2 kB
          Naganarasimha G R
        5. TimelineServiceV2.html
          107 kB
          Naganarasimha G R

        Issue Links

          Activity

            People

              Naganarasimha Naganarasimha G R
              varun_saxena Varun Saxena
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: