[ https://issues.apache.org/jira/browse/MAPREDUCE-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167781#comment-13167781 ]
Jonathan Eagles commented on MAPREDUCE-3518: -------------------------------------------- I appreciate your comment on public APIs. Something definitely needs to be addressed. The difficulty lies in that the testing class needs the ability to mock out the cluster (protected no good), but exists in a different package (package-private no good). I have tried to address all concerns with the latest patch. In this patch I merely add no public API or vars in CLI or JobClient. Instead, I have created a small derived class for testing that is able to set the protected cluster. > mapred queue -info <queue> -showJobs throws NPE > ----------------------------------------------- > > Key: MAPREDUCE-3518 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-3518 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: client, mrv2 > Affects Versions: 0.23.1, 0.24.0 > Reporter: Jonathan Eagles > Assignee: Jonathan Eagles > Priority: Critical > Attachments: MAPREDUCE-3518.patch, MAPREDUCE-3518.patch, > MAPREDUCE-3518.patch, MAPREDUCE-3518.patch > > > mapred queue -info default -showJobs > Exception in thread "main" java.lang.NullPointerException > at org.apache.hadoop.mapreduce.tools.CLI.displayJobList(CLI.java:572) > at > org.apache.hadoop.mapred.JobQueueClient.displayQueueInfo(JobQueueClient.java:190) > at > org.apache.hadoop.mapred.JobQueueClient.run(JobQueueClient.java:103) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:69) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:83) > at > org.apache.hadoop.mapred.JobQueueClient.main(JobQueueClient.java:234) -- 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