Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2970

Null Pointer Exception while submitting a Job, If mapreduce.framework.name property is not set.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0, 0.24.0
    • Fix Version/s: 0.23.0, 0.24.0
    • Component/s: job submission, mrv2
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      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)

      1. MAPREDUCE-2970-20110921.txt
        11 kB
        Vinod Kumar Vavilapalli
      2. MAPREDUCE-2970.patch
        5 kB
        Venu Gopala Rao
      3. MAPREDUCE-2970.2.patch
        11 kB
        Venu Gopala Rao
      4. MAPREDUCE-2970.1.patch
        15 kB
        Venu Gopala Rao

        Activity

          People

          • Assignee:
            Venu Gopala Rao
            Reporter:
            Venu Gopala Rao
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development