Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-4229

Improve TezLocalCacheManager to use configured root directory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.1, 0.9.3
    • None
    • None

    Description

      I've just found that in case of some hive unit tests, running on tez local mode, some files are created in current directory, and even if they are cleaned up, it can be confusing to see files that touch git status.

      Repro:

      mvn test -Pitests,hadoop-2 -Dtest=TestMmCompactorOnTez -pl ./itests/hive-unit
      
      #in another terminal
      cd itests/hive-unit
      watch -n 1 "git status"
      

      where git status shows a dirty working directory:

        (use "git add <file>..." to include in what will be committed)
      
              itests/hive-unit/tez-conf.pb
              itests/hive-unit/tez-local-cache199842840233453791/
      

      Both tempDir and localize root dir might respect the new setting instead of using Paths.get(".")

      Attachments

        1. TEZ-4229.01.patch
          5 kB
          László Bodor
        2. TEZ-4229.01.patch
          5 kB
          László Bodor

        Issue Links

          Activity

            People

              abstractdog László Bodor
              abstractdog László Bodor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: