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

MRAppMaster shutdown hook should not call FileSystem.closeAll()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.0-alpha
    • Component/s: mrv2
    • Labels:
      None

      Description

      Filesystem.closeAll() attempts to remove the FileSystem shutdown hook.

      This triggers an exception

      Exception in thread "Thread-1" java.lang.IllegalStateException: Shutdown in progress
      	at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:55)
      	at java.lang.Runtime.removeShutdownHook(Runtime.java:220)
      	at org.apache.hadoop.fs.FileSystem$Cache.remove(FileSystem.java:2101)
      	at org.apache.hadoop.fs.FileSystem$Cache.closeAll(FileSystem.java:2133)
      	at org.apache.hadoop.fs.FileSystem$Cache.closeAll(FileSystem.java:2110)
      	at org.apache.hadoop.fs.FileSystem.closeAll(FileSystem.java:361)
      	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$MRAppMasterShutdownHook.run(MRAppMaster.java:1013)
      

      Besides, because the FileSystem has its own shutdown hook that does a closeAll() the call from MRAppMaster is not needed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tucu00 Alejandro Abdelnur
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: