Description
As was told by Max (Oracle), JDK9 is likely to block all accesses to sun.* classes.
Below is from email of Andrew Purtell:
The use of sun.* APIs to create a certificate in Hadoop and HBase test code can be removed. Someone (Intel? Oracle?) can submit a JIRA that replaces the programmatic construction with a stringified binary cert for use in the relevant unit tests.
In Hadoop, the calls in question are below:
hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:24:import sun.security.x509.CertificateIssuerName; hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:25:import sun.security.x509.CertificateSerialNumber; hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:26:import sun.security.x509.CertificateSubjectName; hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:27:import sun.security.x509.CertificateValidity; hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:28:import sun.security.x509.CertificateVersion; hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:29:import sun.security.x509.CertificateX509Key; hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:30:import sun.security.x509.X500Name; hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:31:import sun.security.x509.X509CertImpl; hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:32:import sun.security.x509.X509CertInfo;
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-12300 BUILDING.txt instructions for skipping tests incomplete/obsolete, build can fail.
- Resolved
-
HADOOP-11230 Add missing dependency of bouncycastle for kms, httpfs, hdfs, MR and YARN
- Closed
-
KNOX-422 Build break with JVM IBM JAVA
- Closed
- relates to
-
HADOOP-11090 [Umbrella] Support Java 8 in Hadoop
- Resolved
-
HADOOP-10848 Cleanup calling of sun.security.krb5.Config
- Resolved