[
https://issues.apache.org/jira/browse/HADOOP-11230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Kanter updated HADOOP-11230:
-----------------------------------
Description:
HADOOP-10847 removes uses of {{sun.security.x509.*}} packages, but causes tests
that use {{KeyStoreTestUtil}} outside of hadoop-common to fail. See [this
comment|https://issues.apache.org/jira/browse/HADOOP-10847?focusedCommentId=14196756&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14196756]
for details.
This was originally a duplicate of HADOOP-10847, but we've repurposed it to fix
the {{NoClassDefFoundError}}.
was:
Tests using {{KeyStoreTestUtil}} fail because it's using some internal sun
classes to generate a self-signed certificate, and these have changed in JDK 8.
We should not rely on the sun classes.
{noformat}
Running org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.505 sec <<<
FAILURE! - in org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle
encryptedShuffleWithClientCerts(org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle)
Time elapsed: 0.23 sec <<< ERROR!
java.security.cert.CertificateException: Subject class type invalid.
at sun.security.x509.X509CertInfo.setSubject(X509CertInfo.java:888)
at sun.security.x509.X509CertInfo.set(X509CertInfo.java:415)
at
org.apache.hadoop.security.ssl.KeyStoreTestUtil.generateCertificate(KeyStoreTestUtil.java:96)
at
org.apache.hadoop.security.ssl.KeyStoreTestUtil.setupSSLConfig(KeyStoreTestUtil.java:259)
at
org.apache.hadoop.security.ssl.KeyStoreTestUtil.setupSSLConfig(KeyStoreTestUtil.java:223)
at
org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle.encryptedShuffleWithCerts(TestEncryptedShuffle.java:135)
at
org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle.encryptedShuffleWithClientCerts(TestEncryptedShuffle.java:167)
encryptedShuffleWithoutClientCerts(org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle)
Time elapsed: 0.077 sec <<< ERROR!
java.security.cert.CertificateException: Subject class type invalid.
at sun.security.x509.X509CertInfo.setSubject(X509CertInfo.java:888)
at sun.security.x509.X509CertInfo.set(X509CertInfo.java:415)
at
org.apache.hadoop.security.ssl.KeyStoreTestUtil.generateCertificate(KeyStoreTestUtil.java:96)
at
org.apache.hadoop.security.ssl.KeyStoreTestUtil.setupSSLConfig(KeyStoreTestUtil.java:268)
at
org.apache.hadoop.security.ssl.KeyStoreTestUtil.setupSSLConfig(KeyStoreTestUtil.java:223)
at
org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle.encryptedShuffleWithCerts(TestEncryptedShuffle.java:135)
at
org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle.encryptedShuffleWithoutClientCerts(TestEncryptedShuffle.java:172)
{noformat}
Summary: NoClassDefFoundError on bouncycastle (was: [JDK 8]
KeyStoreTestUtil#generateCertificate fails due to "subject class type invalid")
I've updated the Title and Description for this JIRA to repurpose it to fix the
{{NoClassDefFoundError}} caused by HADOOP-10847, which this was originally a
duplicate of.
> NoClassDefFoundError on bouncycastle
> ------------------------------------
>
> Key: HADOOP-11230
> URL: https://issues.apache.org/jira/browse/HADOOP-11230
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Affects Versions: 2.7.0
> Reporter: Robert Kanter
> Assignee: Robert Kanter
> Attachments: HADOOP-11230.patch
>
>
> HADOOP-10847 removes uses of {{sun.security.x509.*}} packages, but causes
> tests that use {{KeyStoreTestUtil}} outside of hadoop-common to fail. See
> [this
> comment|https://issues.apache.org/jira/browse/HADOOP-10847?focusedCommentId=14196756&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14196756]
> for details.
> This was originally a duplicate of HADOOP-10847, but we've repurposed it to
> fix the {{NoClassDefFoundError}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)