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

Add helper method in FairSchedulerAppsBlock to print app info

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      The various *AppsBlock classes are riddled with statements like:

      .append(appInfo.getReservedVCores() == -1 ? "N/A" : String.valueOf(appInfo.getReservedVCores()))

      The code would be much cleaner if there were a utility method for that operation, e.g.:

      .append(printData(appInfo.getReservedCores()))

      Attachments

        Issue Links

          Activity

            People

              rkhandelwal Riya Khandelwal
              templedf Daniel Templeton
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: