Uploaded image for project: '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.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0, 2.0.0-alpha
    • 0.23.0
    • job submission, mrv2
    • None
    • 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)

      Attachments

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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            venug Venu Gopala Rao
            venug Venu Gopala Rao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment