hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhallamudi Venkata Siva Kamesh (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-4071) NPE while executing MRAppMaster shutdown hook
Date Tue, 27 Mar 2012 08:55:48 GMT

    [ 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

        

Mime
View raw message