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

TestContainerManagerSecurity testContainerManager[1] failed

    Details

      Description

      -------------------------------------------------------------------------------
      Test set: org.apache.hadoop.yarn.server.TestContainerManagerSecurity
      -------------------------------------------------------------------------------
      Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 21.727 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.TestContainerManagerSecurity
      testContainerManager[1](org.apache.hadoop.yarn.server.TestContainerManagerSecurity) Time elapsed: 0.005 sec <<< ERROR!
      java.lang.IllegalArgumentException: Can't get Kerberos realm
      at sun.security.krb5.Config.getDefaultRealm(Config.java:1029)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.apache.hadoop.security.authentication.util.KerberosUtil.getDefaultRealm(KerberosUtil.java:88)
      at org.apache.hadoop.security.HadoopKerberosName.setConfiguration(HadoopKerberosName.java:63)
      at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:291)
      at org.apache.hadoop.security.UserGroupInformation.setConfiguration(UserGroupInformation.java:337)
      at org.apache.hadoop.yarn.server.TestContainerManagerSecurity.<init>(TestContainerManagerSecurity.java:151)

        Activity

        Hide
        haibochen Haibo Chen added a comment -

        MiniKDC has not been set up when UserGroupInformation.setConfiguration(conf);
        is called in the constructor of TestContainerManagerSecurity. The fix delays it into set up method

        Show
        haibochen Haibo Chen added a comment - MiniKDC has not been set up when UserGroupInformation.setConfiguration(conf); is called in the constructor of TestContainerManagerSecurity. The fix delays it into set up method
        Hide
        hadoopqa Hadoop QA added a comment -
        -1 overall



        Vote Subsystem Runtime Comment
        0 reexec 0m 17s Docker mode activated.
        +1 @author 0m 0s The patch does not contain any @author tags.
        +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
        +1 mvninstall 7m 2s trunk passed
        +1 compile 0m 20s trunk passed
        +1 checkstyle 0m 14s trunk passed
        +1 mvnsite 0m 28s trunk passed
        +1 mvneclipse 0m 18s trunk passed
        +1 findbugs 0m 26s trunk passed
        +1 javadoc 0m 11s trunk passed
        +1 mvninstall 0m 16s the patch passed
        +1 compile 0m 16s the patch passed
        +1 javac 0m 16s the patch passed
        +1 checkstyle 0m 10s the patch passed
        +1 mvnsite 0m 19s the patch passed
        +1 mvneclipse 0m 14s the patch passed
        +1 whitespace 0m 0s The patch has no whitespace issues.
        +1 findbugs 0m 29s the patch passed
        +1 javadoc 0m 9s the patch passed
        -1 unit 7m 11s hadoop-yarn-server-tests in the patch failed.
        +1 asflicense 0m 16s The patch does not generate ASF License warnings.
        19m 54s



        Reason Tests
        Failed junit tests hadoop.yarn.server.TestDiskFailures
          hadoop.yarn.server.TestContainerManagerSecurity
          hadoop.yarn.server.TestMiniYarnClusterNodeUtilization



        Subsystem Report/Notes
        Docker Image:yetus/hadoop:e809691
        JIRA Issue YARN-5851
        JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12838080/yarn5851.001.patch
        Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
        uname Linux be15c81edbe4 3.13.0-95-generic #142-Ubuntu SMP Fri Aug 12 17:00:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
        Build tool maven
        Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
        git revision trunk / 2a65eb1
        Default Java 1.8.0_101
        findbugs v3.0.0
        unit https://builds.apache.org/job/PreCommit-YARN-Build/13833/artifact/patchprocess/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-tests.txt
        Test Results https://builds.apache.org/job/PreCommit-YARN-Build/13833/testReport/
        modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests
        Console output https://builds.apache.org/job/PreCommit-YARN-Build/13833/console
        Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 17s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. +1 mvninstall 7m 2s trunk passed +1 compile 0m 20s trunk passed +1 checkstyle 0m 14s trunk passed +1 mvnsite 0m 28s trunk passed +1 mvneclipse 0m 18s trunk passed +1 findbugs 0m 26s trunk passed +1 javadoc 0m 11s trunk passed +1 mvninstall 0m 16s the patch passed +1 compile 0m 16s the patch passed +1 javac 0m 16s the patch passed +1 checkstyle 0m 10s the patch passed +1 mvnsite 0m 19s the patch passed +1 mvneclipse 0m 14s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 0m 29s the patch passed +1 javadoc 0m 9s the patch passed -1 unit 7m 11s hadoop-yarn-server-tests in the patch failed. +1 asflicense 0m 16s The patch does not generate ASF License warnings. 19m 54s Reason Tests Failed junit tests hadoop.yarn.server.TestDiskFailures   hadoop.yarn.server.TestContainerManagerSecurity   hadoop.yarn.server.TestMiniYarnClusterNodeUtilization Subsystem Report/Notes Docker Image:yetus/hadoop:e809691 JIRA Issue YARN-5851 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12838080/yarn5851.001.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux be15c81edbe4 3.13.0-95-generic #142-Ubuntu SMP Fri Aug 12 17:00:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 2a65eb1 Default Java 1.8.0_101 findbugs v3.0.0 unit https://builds.apache.org/job/PreCommit-YARN-Build/13833/artifact/patchprocess/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-tests.txt Test Results https://builds.apache.org/job/PreCommit-YARN-Build/13833/testReport/ modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests Console output https://builds.apache.org/job/PreCommit-YARN-Build/13833/console Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
        Hide
        haibochen Haibo Chen added a comment -

        The two TestContainerManagerSecurity failures cannot be reproduced locally. The other two are unrelated known unit test failures (YARN-5858, YARN-5728)

        Show
        haibochen Haibo Chen added a comment - The two TestContainerManagerSecurity failures cannot be reproduced locally. The other two are unrelated known unit test failures ( YARN-5858 , YARN-5728 )
        Hide
        templedf Daniel Templeton added a comment -

        LGTM +1

        Show
        templedf Daniel Templeton added a comment - LGTM +1
        Hide
        templedf Daniel Templeton added a comment -

        Thanks for the fix, Haibo Chen! Committed to trunk and branch-2.

        Show
        templedf Daniel Templeton added a comment - Thanks for the fix, Haibo Chen ! Committed to trunk and branch-2.
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10909 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10909/)
        YARN-5851. TestContainerManagerSecurity testContainerManager[1] failed (templedf: rev dd9a96cb175d63f7c5909cd98f2dc9af267a5864)

        • (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests/src/test/java/org/apache/hadoop/yarn/server/TestContainerManagerSecurity.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10909 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10909/ ) YARN-5851 . TestContainerManagerSecurity testContainerManager [1] failed (templedf: rev dd9a96cb175d63f7c5909cd98f2dc9af267a5864) (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests/src/test/java/org/apache/hadoop/yarn/server/TestContainerManagerSecurity.java
        Hide
        djp Junping Du added a comment -

        This patch goes to branch-2 only instead of branch-2.8, set 2.9 as fix version.

        Show
        djp Junping Du added a comment - This patch goes to branch-2 only instead of branch-2.8, set 2.9 as fix version.

          People

          • Assignee:
            haibochen Haibo Chen
            Reporter:
            haibochen Haibo Chen
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development