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

Fix up yarn top shell code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.0.0-alpha1
    • None
    • scripts

    Description

      We need to do some work on yarn top's shell code.

      a) Just checking for TERM isn't good enough. We really need to check the return on tput, especially since the output will not be a number but an error string which will likely blow up the java code in horrible ways.

      b) All the single bracket tests should be double brackets to force the bash built-in.

      c) I'd think I'd rather see the shell portion in a function since it's rather large. This will allow for args, etc, to get local'ized and clean up the case statement.

      Attachments

        1. YARN-3484.002.patch
          2 kB
          Varun Vasudev
        2. YARN-3484.001.patch
          2 kB
          Varun Vasudev

        Issue Links

          Activity

            People

              vvasudev Varun Vasudev
              aw Allen Wittenauer
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: