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

getClusterStatus() fails with null pointer exception when running jobs in local mode

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.1, 2.0.0-alpha, 3.0.0
    • Fix Version/s: 3.0.0, 2.0.3-alpha, 0.23.6
    • Component/s: jobtracker
    • Labels:
      None
    • Target Version/s:

      Description

      While migrating code from 0.20.2 hadoop codebase to 0.23.1 we encountered this issue for jobs run in local mode of execution:

      
      java.lang.NullPointerException
      	at org.apache.hadoop.mapred.JobClient.arrayToStringList(JobClient.java:783)
      	at org.apache.hadoop.mapred.JobClient.access$600(JobClient.java:138)
      	at org.apache.hadoop.mapred.JobClient$4.run(JobClient.java:815)
      	at org.apache.hadoop.mapred.JobClient$4.run(JobClient.java:812)
      	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:1177)
      	at org.apache.hadoop.mapred.JobClient.getClusterStatus(JobClient.java:812)
      

      We are using cloudera distribution CDH4b2 for testing, however the underlying code is 0.23.1 and I could see no difference in this implementation.

        Activity

        Hide
        Devaraj K added a comment -

        I have uploaded a patch to fix this issue. Please review it.

        Show
        Devaraj K added a comment - I have uploaded a patch to fix this issue. Please review it.
        Hide
        Hadoop QA added a comment -

        +1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12529670/MAPREDUCE-4279.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        +1 tests included. The patch appears to include 1 new or modified test files.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common.

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2417//testReport/
        Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2417//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - +1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12529670/MAPREDUCE-4279.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 1 new or modified test files. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 javadoc. The javadoc tool did not generate any warning messages. +1 eclipse:eclipse. The patch built with eclipse:eclipse. +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common. +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2417//testReport/ Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2417//console This message is automatically generated.
        Hide
        Rahul Jain added a comment -

        The change looks good to me

        Show
        Rahul Jain added a comment - The change looks good to me
        Hide
        Jarek Jarcec Cecho added a comment -

        I've recently detected this issue as well. Would it be possible to fix it?

        Show
        Jarek Jarcec Cecho added a comment - I've recently detected this issue as well. Would it be possible to fix it?
        Hide
        Robert Joseph Evans added a comment -

        The change looks fine to me to +1. I'll check it in.

        Show
        Robert Joseph Evans added a comment - The change looks fine to me to +1. I'll check it in.
        Hide
        Hudson added a comment -

        Integrated in Hadoop-trunk-Commit #3170 (See https://builds.apache.org/job/Hadoop-trunk-Commit/3170/)
        MAPREDUCE-4279. getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428482)

        Result = FAILURE
        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428482
        Files :

        • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java
        • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
        Show
        Hudson added a comment - Integrated in Hadoop-trunk-Commit #3170 (See https://builds.apache.org/job/Hadoop-trunk-Commit/3170/ ) MAPREDUCE-4279 . getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428482) Result = FAILURE bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428482 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
        Hide
        Jarek Jarcec Cecho added a comment -

        Awesome, thank you Robert!

        Show
        Jarek Jarcec Cecho added a comment - Awesome, thank you Robert!
        Hide
        Robert Joseph Evans added a comment -

        Thanks Devaraj and Rahul,

        I put this into trunk, branch-2, and branch-0.23

        Show
        Robert Joseph Evans added a comment - Thanks Devaraj and Rahul, I put this into trunk, branch-2, and branch-0.23
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Yarn-trunk #86 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/86/)
        MAPREDUCE-4279. getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428482)

        Result = FAILURE
        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428482
        Files :

        • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java
        • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
        Show
        Hudson added a comment - Integrated in Hadoop-Yarn-trunk #86 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/86/ ) MAPREDUCE-4279 . getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428482) Result = FAILURE bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428482 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-0.23-Build #484 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/484/)
        svn merge -c 1428482 FIXES: MAPREDUCE-4279. getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428492)

        Result = FAILURE
        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428492
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java
        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-0.23-Build #484 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/484/ ) svn merge -c 1428482 FIXES: MAPREDUCE-4279 . getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428492) Result = FAILURE bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428492 Files : /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk #1275 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1275/)
        MAPREDUCE-4279. getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428482)

        Result = FAILURE
        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428482
        Files :

        • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java
        • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #1275 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1275/ ) MAPREDUCE-4279 . getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428482) Result = FAILURE bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428482 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk #1305 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1305/)
        MAPREDUCE-4279. getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428482)

        Result = SUCCESS
        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428482
        Files :

        • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java
        • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #1305 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1305/ ) MAPREDUCE-4279 . getClusterStatus() fails with null pointer exception when running jobs in local mode (Devaraj K via bobby) (Revision 1428482) Result = SUCCESS bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1428482 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapred/LocalJobRunner.java /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java

          People

          • Assignee:
            Devaraj K
            Reporter:
            Rahul Jain
          • Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development