[ https://issues.apache.org/jira/browse/MAPREDUCE-4135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260614#comment-13260614 ]
Ravi Prakash commented on MAPREDUCE-4135: ----------------------------------------- Hi Devaraj! I've assigned this JIRA to myself. I hope you don't mind. AFTER applying the latest patch, inside MRAppMaster.stop(), super.stop() is throwing an InterruptedException {noformat} 2012-04-24 09:25:20,104 WARN [AsyncDispatcher event handler] org.apache.hadoop.yarn.event.AsyncDispatcher: Interrupted Exception while stopping java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Thread.join(Thread.java:1186) at java.lang.Thread.join(Thread.java:1239) at org.apache.hadoop.yarn.event.AsyncDispatcher.stop(AsyncDispatcher.java:104) at org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:99) at org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:89) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.stop(MRAppMaster.java:1016) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$JobFinishEventHandler.handle(MRAppMaster.java:418) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$JobFinishEventHandler.handle(MRAppMaster.java:386) at org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:125) at org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:74) at java.lang.Thread.run(Thread.java:662) {noformat} This is causing the subsequent statement (FileSystem.closeAll() ) to be skipped. So to fix this JIRA, I'll see what I can do to fix the InterruptedException. > MRAppMaster throws IllegalStateException while shutting down > ------------------------------------------------------------ > > Key: MAPREDUCE-4135 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4135 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: mrv2 > Affects Versions: 2.0.0, 3.0.0 > Reporter: Devaraj K > Assignee: Ravi Prakash > Attachments: MAPREDUCE-4135.branch-0.23.patch, MAPREDUCE-4135.patch, > MAPREDUCE-4135.patch > > > Always MRAppMaster throws IllegalStateException in the stderr while shutting > down. It doesn't look good having this exception in the stderr file of > MRAppMaster container. > {code:xml} > WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use > org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files. > 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:2148) > at org.apache.hadoop.fs.FileSystem$Cache.closeAll(FileSystem.java:2180) > at org.apache.hadoop.fs.FileSystem$Cache.closeAll(FileSystem.java:2157) > at org.apache.hadoop.fs.FileSystem.closeAll(FileSystem.java:361) > at > org.apache.hadoop.mapreduce.v2.app.MRAppMaster$MRAppMasterShutdownHook.run(MRAppMaster.java:1014) > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira