Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7236

[Docs] In the TimelineClient example, there are some confusing logic

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: docs, timelineclient
    • Labels:
      None

      Description

      Firstly, the entity and timelineClient are not defined in the example;
      Secondly, "TimelinePutResponse response" is defined twice;
      Finally, there is a problem with sequential logic.
      Like this:

      TimelinePutResponse response = client.putEntities(entity);
      ...
      myEntity.addEvent(event);
      TimelinePutResponse response = timelineClient.putEntities(entity);

        Attachments

        1. YARN-7236.001.patch
          1 kB
          Sen Zhao

          Activity

            People

            • Assignee:
              Sen Zhao Sen Zhao
              Reporter:
              Sen Zhao Sen Zhao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: