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

Andrew Wang commented on MAPREDUCE-5867:
----------------------------------------

Hey Devraj, I think TestKillAMPreemptionPolicy.java was committed with CRLFs 
rather than LFs, which messes up {{git diff}} for those of us using the git 
mirror. Do you mind fixing this? Thanks.

> Possible NPE in KillAMPreemptionPolicy related to 
> ProportionalCapacityPreemptionPolicy
> --------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-5867
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5867
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: resourcemanager
>    Affects Versions: 2.3.0
>            Reporter: Sunil G
>            Assignee: Sunil G
>             Fix For: 3.0.0
>
>         Attachments: MapReduce-5867-updated.patch, 
> MapReduce-5867-updated.patch, MapReduce-5867.2.patch, MapReduce-5867.3.patch, 
> Yarn-1980.1.patch
>
>
> I configured KillAMPreemptionPolicy for My Application Master and tried to 
> check preemption of queues.
> In one scenario I have seen below NPE in my AM
> 014-04-24 15:11:08,860 ERROR [RMCommunicator Allocator] 
> org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: ERROR IN 
> CONTACTING RM. 
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.mapreduce.v2.app.rm.preemption.KillAMPreemptionPolicy.preempt(KillAMPreemptionPolicy.java:57)
>       at 
> org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.getResources(RMContainerAllocator.java:662)
>       at 
> org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.heartbeat(RMContainerAllocator.java:246)
>       at 
> org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator$1.run(RMCommunicator.java:267)
>       at java.lang.Thread.run(Thread.java:662)
> I was using 2.2.0 and merged MAPREDUCE-5189 to see how AM preemption works.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to