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

many getFileStatus calls made from node manager for localizing a public distributed cache resource

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.4.0
    • Component/s: nodemanager
    • Labels:
      None
    • Target Version/s:

      Description

      We're observing that the getFileStatus calls are putting a fair amount of load on the name node as part of checking the public-ness for localizing a resource that belong in the public cache.

      We see 7 getFileStatus calls made for each of these resource. We should look into reducing the number of calls to the name node. One example:

      2014-02-27 18:07:27,351 INFO audit: ... cmd=getfileinfo	src=/tmp/temp-887708724/tmp883330348/foo-0.0.44.jar ...
      2014-02-27 18:07:27,352 INFO audit: ... cmd=getfileinfo	src=/tmp/temp-887708724/tmp883330348/foo-0.0.44.jar ...
      2014-02-27 18:07:27,352 INFO audit: ... cmd=getfileinfo	src=/tmp/temp-887708724/tmp883330348 ...
      2014-02-27 18:07:27,353 INFO audit: ... cmd=getfileinfo	src=/tmp/temp-887708724 ...
      2014-02-27 18:07:27,353 INFO audit: ... cmd=getfileinfo	src=/tmp ...
      2014-02-27 18:07:27,354 INFO audit: ... cmd=getfileinfo	src=/	 ...
      2014-02-27 18:07:27,354 INFO audit: ... cmd=getfileinfo	src=/tmp/temp-887708724/tmp883330348/foo-0.0.44.jar ...
      2014-02-27 18:07:27,355 INFO audit: ... cmd=open	src=/tmp/temp-887708724/tmp883330348/foo-0.0.44.jar ...
      

        Attachments

        1. yarn-1771.patch
          28 kB
          Sangjin Lee
        2. yarn-1771.patch
          27 kB
          Sangjin Lee
        3. yarn-1771.patch
          20 kB
          Sangjin Lee
        4. yarn-1771.patch
          20 kB
          Sangjin Lee

          Issue Links

            Activity

              People

              • Assignee:
                sjlee0 Sangjin Lee
                Reporter:
                sjlee0 Sangjin Lee
              • Votes:
                0 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: