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

Fix bugs of yarn queue CLI

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: client
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Need fix bugs:
      1) args of queue CLI is without "queue" even if you run with "yarn queue -status ..", the args is ["-status", "..."]. The assumption is incorrect.
      2) It is possible that there's no related QueueInfo with specified queue name, and null will be returned from YarnClient, so NPE will raise. Added a check for it, and will print proper message
      3) When failed to get QueueInfo, should return non-zero exit code.
      4) Add tests for above.

        Attachments

        1. YARN-2827.1.patch
          6 kB
          Vinod Kumar Vavilapalli
        2. YARN-2827.1.patch
          6 kB
          Wangda Tan
        3. YARN-2827-branch_2-1.patch
          6 kB
          Wangda Tan

          Issue Links

            Activity

              People

              • Assignee:
                leftnoteasy Wangda Tan
                Reporter:
                leftnoteasy Wangda Tan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: