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

MRAppMaster shutdown hook should not call FileSystem.closeAll()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.0-alpha
    • 2.0.0-alpha
    • mrv2
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: