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

One message is misleading in LogsCLI

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      In LogsCLI,

          } else if ((containerIdStr == null && nodeAddress != null)
              || (containerIdStr != null && nodeAddress == null)) {
            System.out.println("ContainerId or NodeAddress cannot be null!");
      

      If users set either ContainerId or NodeAddress, but not both, they will get this message. However, it may confuse the users, because the sentence sounds that it's OK if one of the two params is not null.

        Attachments

          Activity

            People

            • Assignee:
              haosdent@gmail.com haosdent
              Reporter:
              zjshen Zhijie Shen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: