Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17177 Java 17 support
  3. HADOOP-19219

Resolve Certificate error in Hadoop-auth tests.

    XMLWordPrintableJSON

Details

    Description

      While compiling Hadoop-Trunk with JDK17, faced following errors in TestMultiSchemeAuthenticationHandler and 
      TestLdapAuthenticationHandler classes.

      [INFO] Running org.apache.hadoop.security.authentication.server.TestMultiSchemeAuthenticationHandler
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.256 s <<< FAILURE! - in org.apache.hadoop.security.authentication.server.TestMultiSchemeAuthenticationHandler
      [ERROR] org.apache.hadoop.security.authentication.server.TestMultiSchemeAuthenticationHandler  Time elapsed: 1.255 s  <<< ERROR!
      java.lang.IllegalAccessError: class org.apache.directory.server.core.security.CertificateUtil (in unnamed module @0x32e614e9) cannot access class sun.security.x509.X500Name (in module java.base) because module java.base does not export sun.security.x509 to unnamed module @0x32e614e9
              at org.apache.directory.server.core.security.CertificateUtil.createTempKeyStore(CertificateUtil.java:334)
              at org.apache.directory.server.factory.ServerAnnotationProcessor.instantiateLdapServer(ServerAnnotationProcessor.java:158)
              at org.apache.directory.server.factory.ServerAnnotationProcessor.createLdapServer(ServerAnnotationProcessor.java:318)
              at org.apache.directory.server.factory.ServerAnnotationProcessor.createLdapServer(ServerAnnotationProcessor.java:351) 

      Attachments

        Issue Links

          Activity

            People

              muskan.mishra Muskan Mishra
              muskan.mishra Muskan Mishra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: