Null Pointer Exception while submitting a Job, If mapreduce.framework.name property is not set. -----------------------------------------------------------------------------------------------
Key: MAPREDUCE-2970 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2970 Project: Hadoop Map/Reduce Issue Type: Bug Components: job submission Affects Versions: 0.24.0 Reporter: Venu Gopala Rao Assignee: Venu Gopala Rao Fix For: 0.24.0 If mapreduce.framework.name property is not set in mapred-site.xml, Null pointer Exception is thrown. java.lang.NullPointerException at org.apache.hadoop.mapreduce.Cluster$1.run(Cluster.java:133) at org.apache.hadoop.mapreduce.Cluster$1.run(Cluster.java:1) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1135) at org.apache.hadoop.mapreduce.Cluster.getFileSystem(Cluster.java:131) at org.apache.hadoop.mapreduce.Job.submit(Job.java:1067) at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1089) at org.apache.hadoop.examples.WordCount.main(WordCount.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:144) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:189) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira