[ 
https://issues.apache.org/jira/browse/MAPREDUCE-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vinod Kumar Vavilapalli updated MAPREDUCE-2970:
-----------------------------------------------

    Status: Open  (was: Patch Available)

 - The ProtocolProviders don't work in isolation, they are all invoked one by 
one to figure out which one is the correct framework in question. So none of 
them can throw exceptions if they aren't configured.
 - Don't think you got my comment about the test. Both the tests should be 
combined into a single simple test which creates cluster objects with different 
configurations and it should verify whether the right frameworks are used.

> 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
>
>         Attachments: MAPREDUCE-2970.1.patch, MAPREDUCE-2970.patch
>
>
> 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

        

Reply via email to