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

Better logging in SchedulerNode#allocateContainer

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      This bit of code:

      LOG.info("Assigned container " + container.getId() + " of capacity "
      + container.getResource() + " on host " + rmNode.getNodeAddress()
      + ", which currently has " + numContainers + " containers, "
      + getUsedResource() + " used and " + getAvailableResource()
      + " available");

      results in a line like:

      2014-05-30 16:17:43,573 INFO org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSSchedulerNode: Assigned container container_1400666605555_0009_01_001111 of capacity <memory:1536, vCores:1> on host machine.host.domain.com:8041, which currently has 18 containers, <memory:27648, vCores:18> used and <memory:3072, vCores:0> available

      That message is fine in most cases, but looks pretty bad after the last available allocation, since it says something like "vCores:0 available".

      Here is one suggested phrasing

      • "which has 18 containers, <memory:27648, vCores:18> used and <memory:3072, vCores:0> available after allocation"

      Attachments

        1. YARN2159-01.patch
          1 kB
          Ray Chiang

        Activity

          People

            rchiang Ray Chiang
            rchiang Ray Chiang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: