You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Bhallamudi Venkata Siva Kamesh (Commented) (JIRA)" <ji...@apache.org> on 2012/03/27 10:55:48 UTC

[jira] [Commented] (MAPREDUCE-4071) NPE while executing MRAppMaster shutdown hook

    [ https://issues.apache.org/jira/browse/MAPREDUCE-4071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239322#comment-13239322 ] 

Bhallamudi Venkata Siva Kamesh commented on MAPREDUCE-4071:
-----------------------------------------------------------

MRAppMaster received shutdown signal just before executing start method of ContainerAllocatorRouter service. So while executing shutdown hook 
of MRAppMaster

{code:title=MRAppMaster.java|borderStyle=solid}
if(appMaster.containerAllocator instanceof ContainerAllocatorRouter) {
        ((ContainerAllocatorRouter) appMaster.containerAllocator)
        .setSignalled(true);
      }
{code} 

above code tries set the flag of containerAllocator object in ContainerAllocatorRouter#setSignalled(). But containerAllocator object has been instantiated while executing start method. So containerAllocator is null and hence NPE.
                
> NPE while executing MRAppMaster shutdown hook
> ---------------------------------------------
>
>                 Key: MAPREDUCE-4071
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4071
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mr-am, mrv2
>    Affects Versions: 0.23.1, 0.23.2, 0.23.3
>            Reporter: Bhallamudi Venkata Siva Kamesh
>
> While running the shutdown hook of MRAppMaster, hit NPE
> {noformat}
> Exception in thread "Thread-1" java.lang.NullPointerException
> 	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$ContainerAllocatorRouter.setSignalled(MRAppMaster.java:668)
> 	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$MRAppMasterShutdownHook.run(MRAppMaster.java:1004)
> {noformat}

--
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