Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5278

Distributed cache is broken when JT staging dir is not on the default FS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1-win
    • 1-win
    • distributed-cache
    • None
    • Windows

    • Reviewed

    Description

      Today, the JobTracker staging dir ("mapreduce.jobtracker.staging.root.dir) is set to point to HDFS, even though other file systems (e.g. Amazon S3 file system and Windows ASV file system) are the default file systems.

      For ASV, this config was chosen and there are a few reasons why:

      1. To prevent leak of the storage account credentials to the user's storage account;
      2. It uses HDFS for the transient job files what is good for two reasons – a) it does not flood the user's storage account with irrelevant data/files b) it leverages HDFS locality for small files

      However, this approach conflicts with how distributed cache caching works, completely negating the feature's functionality.

      When files are added to the distributed cache (thru files/achieves/libjars hadoop generic options), they are copied to the job tracker staging dir only if they reside on a file system different that the jobtracker's. Later on, this path is used as a "key" to cache the files locally on the tasktracker's machine, and avoid localization (download/unzip) of the distributed cache files if they are already localized.

      In this configuration the caching is completely disabled and we always end up copying dist cache files to the job tracker's staging dir first and localizing them on the task tracker machine second.

      This is especially not good for Oozie scenarios as Oozie uses dist cache to populate Hive/Pig jars throughout the cluster.

      Attachments

        1. MAPREDUCE-5278.patch
          7 kB
          Douma Fang
        2. MAPREDUCE-5278.2.patch
          8 kB
          Douma Fang
        3. MAPREDUCE-5278.3.patch
          8 kB
          Douma Fang
        4. MAPREDUCE-5278.4.patch
          9 kB
          Douma Fang
        5. MAPREDUCE-5278.5.patch
          9 kB
          Douma Fang

        Activity

          People

            xifang Douma Fang
            xifang Douma Fang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: