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

getResourceCalculatorPlugin for the default should intercept all exceptions

    Details

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

      Description

      Since the user has not configured a specific plugin, any problems with the default resource calculator instantiation should be ignored.

      2015-07-10 08:16:18,445 INFO org.apache.hadoop.service.AbstractService: Service containers-monitor failed in state INITED; cause: java.lang.UnsupportedOperationException: Could not determine OS
      java.lang.UnsupportedOperationException: Could not determine OS
              at org.apache.hadoop.util.SysInfo.newInstance(SysInfo.java:43)
              at org.apache.hadoop.yarn.util.ResourceCalculatorPlugin.<init>(ResourceCalculatorPlugin.java:37)
              at org.apache.hadoop.yarn.util.ResourceCalculatorPlugin.getResourceCalculatorPlugin(ResourceCalculatorPlugin.java:160)
              at org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor.ContainersMonitorImpl.serviceInit(ContainersMonitorImpl.java:108)
              at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
              at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
              at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:249)
              at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
              at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
              at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:312)
              at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
              at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:547)
              at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:595)
      

        Issue Links

          Activity

          Hide
          hadoopqa Hadoop QA added a comment -



          -1 overall



          Vote Subsystem Runtime Comment
          0 pre-patch 16m 40s 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 7m 38s There were no new javac warning messages.
          +1 javadoc 9m 43s There were no new javadoc warning messages.
          +1 release audit 0m 22s The applied patch does not increase the total number of release audit warnings.
          +1 checkstyle 0m 51s There were no new checkstyle issues.
          +1 whitespace 0m 0s The patch has no lines that end in whitespace.
          +1 install 1m 20s mvn install still works.
          +1 eclipse:eclipse 0m 32s The patch built with eclipse:eclipse.
          +1 findbugs 1m 34s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
          +1 yarn tests 1m 57s Tests passed in hadoop-yarn-common.
              40m 40s  



          Subsystem Report/Notes
          Patch URL http://issues.apache.org/jira/secure/attachment/12744858/HADOOP-12222.001.patch
          Optional Tests javadoc javac unit findbugs checkstyle
          git revision trunk / 47f4c54
          hadoop-yarn-common test log https://builds.apache.org/job/PreCommit-HADOOP-Build/7239/artifact/patchprocess/testrun_hadoop-yarn-common.txt
          Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/7239/testReport/
          Java 1.7.0_55
          uname Linux asf904.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-HADOOP-Build/7239/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 pre-patch 16m 40s 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 7m 38s There were no new javac warning messages. +1 javadoc 9m 43s There were no new javadoc warning messages. +1 release audit 0m 22s The applied patch does not increase the total number of release audit warnings. +1 checkstyle 0m 51s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 20s mvn install still works. +1 eclipse:eclipse 0m 32s The patch built with eclipse:eclipse. +1 findbugs 1m 34s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 yarn tests 1m 57s Tests passed in hadoop-yarn-common.     40m 40s   Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12744858/HADOOP-12222.001.patch Optional Tests javadoc javac unit findbugs checkstyle git revision trunk / 47f4c54 hadoop-yarn-common test log https://builds.apache.org/job/PreCommit-HADOOP-Build/7239/artifact/patchprocess/testrun_hadoop-yarn-common.txt Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/7239/testReport/ Java 1.7.0_55 uname Linux asf904.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-HADOOP-Build/7239/console This message was automatically generated.
          Hide
          chris.douglas Chris Douglas added a comment -

          +1, though catching Exception should be sufficient.

          Show
          chris.douglas Chris Douglas added a comment - +1, though catching Exception should be sufficient.
          Hide
          jira.shegalov Gera Shegalov added a comment -

          Thanks Chris Douglas for review. Moved JIRA to YARN beause ResourceCalculatorPlugin.java is in hadoop-yarn-common.

          Show
          jira.shegalov Gera Shegalov added a comment - Thanks Chris Douglas for review. Moved JIRA to YARN beause ResourceCalculatorPlugin.java is in hadoop-yarn-common.
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-trunk-Commit #8152 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8152/)
          YARN-3917. getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441)

          • hadoop-yarn-project/CHANGES.txt
          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8152 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8152/ ) YARN-3917 . getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441) hadoop-yarn-project/CHANGES.txt hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
          Hide
          jira.shegalov Gera Shegalov added a comment -

          Committed to trunk and branch-2.

          Show
          jira.shegalov Gera Shegalov added a comment - Committed to trunk and branch-2.
          Hide
          hadoopqa Hadoop QA added a comment -



          -1 overall



          Vote Subsystem Runtime Comment
          0 pre-patch 16m 18s 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 7m 41s There were no new javac warning messages.
          +1 javadoc 9m 41s There were no new javadoc warning messages.
          +1 release audit 0m 22s The applied patch does not increase the total number of release audit warnings.
          +1 checkstyle 0m 54s There were no new checkstyle issues.
          +1 whitespace 0m 0s The patch has no lines that end in whitespace.
          +1 install 1m 21s mvn install still works.
          +1 eclipse:eclipse 0m 34s The patch built with eclipse:eclipse.
          +1 findbugs 1m 31s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
          +1 yarn tests 1m 56s Tests passed in hadoop-yarn-common.
              40m 20s  



          Subsystem Report/Notes
          Patch URL http://issues.apache.org/jira/secure/attachment/12744858/HADOOP-12222.001.patch
          Optional Tests javadoc javac unit findbugs checkstyle
          git revision trunk / 1df39c1
          hadoop-yarn-common test log https://builds.apache.org/job/PreCommit-YARN-Build/8512/artifact/patchprocess/testrun_hadoop-yarn-common.txt
          Test Results https://builds.apache.org/job/PreCommit-YARN-Build/8512/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/8512/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 pre-patch 16m 18s 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 7m 41s There were no new javac warning messages. +1 javadoc 9m 41s There were no new javadoc warning messages. +1 release audit 0m 22s The applied patch does not increase the total number of release audit warnings. +1 checkstyle 0m 54s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 21s mvn install still works. +1 eclipse:eclipse 0m 34s The patch built with eclipse:eclipse. +1 findbugs 1m 31s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 yarn tests 1m 56s Tests passed in hadoop-yarn-common.     40m 20s   Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12744858/HADOOP-12222.001.patch Optional Tests javadoc javac unit findbugs checkstyle git revision trunk / 1df39c1 hadoop-yarn-common test log https://builds.apache.org/job/PreCommit-YARN-Build/8512/artifact/patchprocess/testrun_hadoop-yarn-common.txt Test Results https://builds.apache.org/job/PreCommit-YARN-Build/8512/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/8512/console This message was automatically generated.
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #254 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/254/)
          YARN-3917. getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441)

          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
          • hadoop-yarn-project/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #254 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/254/ ) YARN-3917 . getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java hadoop-yarn-project/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk #984 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/984/)
          YARN-3917. getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441)

          • hadoop-yarn-project/CHANGES.txt
          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #984 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/984/ ) YARN-3917 . getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441) hadoop-yarn-project/CHANGES.txt hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #252 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/252/)
          YARN-3917. getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441)

          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
          • hadoop-yarn-project/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #252 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/252/ ) YARN-3917 . getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java hadoop-yarn-project/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #242 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/242/)
          YARN-3917. getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441)

          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
          • hadoop-yarn-project/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #242 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/242/ ) YARN-3917 . getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java hadoop-yarn-project/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Hdfs-trunk #2181 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2181/)
          YARN-3917. getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441)

          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
          • hadoop-yarn-project/CHANGES.txt
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Hdfs-trunk #2181 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2181/ ) YARN-3917 . getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java hadoop-yarn-project/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2200 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2200/)
          YARN-3917. getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441)

          • hadoop-yarn-project/CHANGES.txt
          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2200 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2200/ ) YARN-3917 . getResourceCalculatorPlugin for the default should intercept all exceptions. (gera) (gera: rev d7319dee37ea93f1a1ba4153ea63ea8010ba2441) hadoop-yarn-project/CHANGES.txt hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java

            People

            • Assignee:
              jira.shegalov Gera Shegalov
              Reporter:
              jira.shegalov Gera Shegalov
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development