Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4302

SLS not able start due to NPE in SchedulerApplicationAttempt#getResourceUsageReport

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 2.7.4, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      Configure the samples from tools/sls

      yarn-site.xml
      capacityscheduler.xml
      sls-runner.xml

      to /etc/hadoop

      Start sls using

      bin/slsrun.sh --input-rumen=sample-data/2jobs2min-rumen-jh.json --output-dir=out

      15/10/27 14:43:36 ERROR resourcemanager.ResourceManager: Error in handling event type ATTEMPT_ADDED for applicationAttempt application_1445937212593_0001
      java.lang.NullPointerException
      at org.apache.hadoop.yarn.util.resource.Resources.clone(Resources.java:117)
      at org.apache.hadoop.yarn.util.resource.Resources.multiply(Resources.java:151)
      at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerApplicationAttempt.getResourceUsageReport(SchedulerApplicationAttempt.java:692)
      at org.apache.hadoop.yarn.server.resourcemanager.scheduler.AbstractYarnScheduler.getAppResourceUsageReport(AbstractYarnScheduler.java:326)
      at org.apache.hadoop.yarn.sls.scheduler.ResourceSchedulerWrapper.getAppResourceUsageReport(ResourceSchedulerWrapper.java:912)
      at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptMetrics.getAggregateAppResourceUsage(RMAppAttemptMetrics.java:121)
      at org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.storeNewApplicationAttempt(RMStateStore.java:819)
      at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl.storeAttempt(RMAppAttemptImpl.java:2011)
      at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl.access$2700(RMAppAttemptImpl.java:109)
      at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl$ScheduleTransition.transition(RMAppAttemptImpl.java:1021)
      at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl$ScheduleTransition.transition(RMAppAttemptImpl.java:974)
      at org.apache.hadoop.yarn.state.StateMachineFactory$MultipleInternalArc.doTransition(StateMachineFactory.java:385)
      at org.apache.hadoop.yarn.state.StateMachineFactory.doTransition(StateMachineFactory.java:302)
      at org.apache.hadoop.yarn.state.StateMachineFactory.access$300(StateMachineFactory.java:46)
      at org.apache.hadoop.yarn.state.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:448)
      at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl.handle(RMAppAttemptImpl.java:839)
      at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl.handle(RMAppAttemptImpl.java:108)
      at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationAttemptEventDispatcher.handle(ResourceManager.java:820)
      at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationAttemptEventDispatcher.handle(ResourceManager.java:801)
      at org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:183)
      at org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:109)
      at java.lang.Thread.run(Thread.java:745)
      
      
      1. 0001-YARN-4302.patch
        0.7 kB
        Bibin A Chundatt
      2. 0001-YARN-4302.patch
        0.7 kB
        Bibin A Chundatt

        Activity

        Hide
        shv Konstantin Shvachko added a comment -

        I just committed this to branch-2.7.
        Thank you Ye Zhou for backporting.

        Show
        shv Konstantin Shvachko added a comment - I just committed this to branch-2.7. Thank you Ye Zhou for backporting.
        Hide
        zhouyejoe Ye Zhou added a comment -

        Konstantin ShvachkoPatch applies to 2.7.4. Build and test passed.

        Show
        zhouyejoe Ye Zhou added a comment - Konstantin Shvachko Patch applies to 2.7.4. Build and test passed.
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Hdfs-trunk #2481 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2481/)
        YARN-4302. SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03)

        • hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        • hadoop-yarn-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2481 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2481/ ) YARN-4302 . SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03) hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java hadoop-yarn-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #591 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/591/)
        YARN-4302. SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03)

        • hadoop-yarn-project/CHANGES.txt
        • hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #591 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/591/ ) YARN-4302 . SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03) hadoop-yarn-project/CHANGES.txt hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Hadoop-Yarn-trunk #1327 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1327/)
        YARN-4302. SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03)

        • hadoop-yarn-project/CHANGES.txt
        • hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Yarn-trunk #1327 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1327/ ) YARN-4302 . SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03) hadoop-yarn-project/CHANGES.txt hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk #2534 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2534/)
        YARN-4302. SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03)

        • hadoop-yarn-project/CHANGES.txt
        • hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2534 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2534/ ) YARN-4302 . SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03) hadoop-yarn-project/CHANGES.txt hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #543 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/543/)
        YARN-4302. SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03)

        • hadoop-yarn-project/CHANGES.txt
        • hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #543 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/543/ ) YARN-4302 . SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03) hadoop-yarn-project/CHANGES.txt hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #603 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/603/)
        YARN-4302. SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03)

        • hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        • hadoop-yarn-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #603 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/603/ ) YARN-4302 . SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03) hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java hadoop-yarn-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-trunk-Commit #8714 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8714/)
        YARN-4302. SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03)

        • hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java
        • hadoop-yarn-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8714 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8714/ ) YARN-4302 . SLS not able start due to NPE in SchedulerApplicationAttempt. (vvasudev: rev c28e16b40caf1e22f72cf2214ebc2fe2eaca4d03) hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/scheduler/ResourceSchedulerWrapper.java hadoop-yarn-project/CHANGES.txt
        Hide
        vvasudev Varun Vasudev added a comment -

        Committed to trunk and branch-2. Thanks Bibin A Chundatt!

        Show
        vvasudev Varun Vasudev added a comment - Committed to trunk and branch-2. Thanks Bibin A Chundatt !
        Hide
        hadoopqa Hadoop QA added a comment -



        -1 overall



        Vote Subsystem Runtime Comment
        0 pre-patch 18m 47s Pre-patch trunk compilation is healthy.
        +1 @author 0m 0s The patch does not contain any @author tags.
        -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
        +1 javac 8m 58s There were no new javac warning messages.
        +1 javadoc 11m 44s There were no new javadoc warning messages.
        +1 release audit 0m 26s The applied patch does not increase the total number of release audit warnings.
        +1 checkstyle 0m 26s There were no new checkstyle issues.
        +1 whitespace 0m 0s The patch has no lines that end in whitespace.
        +1 install 1m 44s mvn install still works.
        +1 eclipse:eclipse 0m 39s The patch built with eclipse:eclipse.
        +1 findbugs 0m 55s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
        +1 tools/hadoop tests 1m 0s Tests passed in hadoop-sls.
            44m 42s  



        Subsystem Report/Notes
        Patch URL http://issues.apache.org/jira/secure/attachment/12768982/0001-YARN-4302.patch
        Optional Tests javadoc javac unit findbugs checkstyle
        git revision trunk / bcb2386
        hadoop-sls test log https://builds.apache.org/job/PreCommit-YARN-Build/9589/artifact/patchprocess/testrun_hadoop-sls.txt
        Test Results https://builds.apache.org/job/PreCommit-YARN-Build/9589/testReport/
        Java 1.7.0_55
        uname Linux asf905.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
        Console output https://builds.apache.org/job/PreCommit-YARN-Build/9589/console

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 pre-patch 18m 47s Pre-patch trunk compilation is healthy. +1 @author 0m 0s The patch does not contain any @author tags. -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac 8m 58s There were no new javac warning messages. +1 javadoc 11m 44s There were no new javadoc warning messages. +1 release audit 0m 26s The applied patch does not increase the total number of release audit warnings. +1 checkstyle 0m 26s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 44s mvn install still works. +1 eclipse:eclipse 0m 39s The patch built with eclipse:eclipse. +1 findbugs 0m 55s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 tools/hadoop tests 1m 0s Tests passed in hadoop-sls.     44m 42s   Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12768982/0001-YARN-4302.patch Optional Tests javadoc javac unit findbugs checkstyle git revision trunk / bcb2386 hadoop-sls test log https://builds.apache.org/job/PreCommit-YARN-Build/9589/artifact/patchprocess/testrun_hadoop-sls.txt Test Results https://builds.apache.org/job/PreCommit-YARN-Build/9589/testReport/ Java 1.7.0_55 uname Linux asf905.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Console output https://builds.apache.org/job/PreCommit-YARN-Build/9589/console This message was automatically generated.
        Hide
        bibinchundatt Bibin A Chundatt added a comment -

        Uploading again to trigger CI.
        Failure is not related to patch attached.Local run in Eclipse is passing.

        Show
        bibinchundatt Bibin A Chundatt added a comment - Uploading again to trigger CI. Failure is not related to patch attached.Local run in Eclipse is passing.
        Hide
        hadoopqa Hadoop QA added a comment -



        -1 overall



        Vote Subsystem Runtime Comment
        0 pre-patch 23m 29s Pre-patch trunk compilation is healthy.
        +1 @author 0m 0s The patch does not contain any @author tags.
        -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
        +1 javac 11m 20s There were no new javac warning messages.
        +1 javadoc 14m 15s There were no new javadoc warning messages.
        +1 release audit 0m 30s The applied patch does not increase the total number of release audit warnings.
        +1 checkstyle 0m 30s There were no new checkstyle issues.
        +1 whitespace 0m 0s The patch has no lines that end in whitespace.
        +1 install 2m 0s mvn install still works.
        +1 eclipse:eclipse 0m 49s The patch built with eclipse:eclipse.
        +1 findbugs 1m 9s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
        -1 tools/hadoop tests 0m 30s Tests failed in hadoop-sls.
            54m 38s  



        Reason Tests
        Failed unit tests hadoop.yarn.sls.appmaster.TestAMSimulator
          hadoop.yarn.sls.TestSLSRunner
          hadoop.yarn.sls.nodemanager.TestNMSimulator



        Subsystem Report/Notes
        Patch URL http://issues.apache.org/jira/secure/attachment/12768933/0001-YARN-4302.patch
        Optional Tests javadoc javac unit findbugs checkstyle
        git revision trunk / 96677be
        hadoop-sls test log https://builds.apache.org/job/PreCommit-YARN-Build/9588/artifact/patchprocess/testrun_hadoop-sls.txt
        Test Results https://builds.apache.org/job/PreCommit-YARN-Build/9588/testReport/
        Java 1.7.0_55
        uname Linux asf907.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
        Console output https://builds.apache.org/job/PreCommit-YARN-Build/9588/console

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 pre-patch 23m 29s Pre-patch trunk compilation is healthy. +1 @author 0m 0s The patch does not contain any @author tags. -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac 11m 20s There were no new javac warning messages. +1 javadoc 14m 15s There were no new javadoc warning messages. +1 release audit 0m 30s The applied patch does not increase the total number of release audit warnings. +1 checkstyle 0m 30s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 2m 0s mvn install still works. +1 eclipse:eclipse 0m 49s The patch built with eclipse:eclipse. +1 findbugs 1m 9s The patch does not introduce any new Findbugs (version 3.0.0) warnings. -1 tools/hadoop tests 0m 30s Tests failed in hadoop-sls.     54m 38s   Reason Tests Failed unit tests hadoop.yarn.sls.appmaster.TestAMSimulator   hadoop.yarn.sls.TestSLSRunner   hadoop.yarn.sls.nodemanager.TestNMSimulator Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12768933/0001-YARN-4302.patch Optional Tests javadoc javac unit findbugs checkstyle git revision trunk / 96677be hadoop-sls test log https://builds.apache.org/job/PreCommit-YARN-Build/9588/artifact/patchprocess/testrun_hadoop-sls.txt Test Results https://builds.apache.org/job/PreCommit-YARN-Build/9588/testReport/ Java 1.7.0_55 uname Linux asf907.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Console output https://builds.apache.org/job/PreCommit-YARN-Build/9588/console This message was automatically generated.
        Hide
        vvasudev Varun Vasudev added a comment -

        My apologies for not catching this Bibin A Chundatt. Thank you for catching this. +1 pending Jenkins.

        Show
        vvasudev Varun Vasudev added a comment - My apologies for not catching this Bibin A Chundatt . Thank you for catching this. +1 pending Jenkins.
        Hide
        sunilg Sunil G added a comment -

        Yes Bibin A Chundatt. Its coming after YARN-4285, Varun Vasudev Could you please take a look.

        Show
        sunilg Sunil G added a comment - Yes Bibin A Chundatt . Its coming after YARN-4285 , Varun Vasudev Could you please take a look.
        Hide
        bibinchundatt Bibin A Chundatt added a comment -

        Impact of YARN-4285.
        Attaching patch for the same.Please do review

        Show
        bibinchundatt Bibin A Chundatt added a comment - Impact of YARN-4285 . Attaching patch for the same.Please do review

          People

          • Assignee:
            bibinchundatt Bibin A Chundatt
            Reporter:
            bibinchundatt Bibin A Chundatt
          • Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development