hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11481) ClassCastException while using a key created by keytool to create encryption zone.
Date Thu, 15 Jan 2015 10:44:44 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14278545#comment-14278545
] 

Hudson commented on HADOOP-11481:
---------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #74 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/74/])
Add CHANGES.txt for HADOOP-11481 (cmccabe: rev 5805dc0f0405bee418daa1c9890a669da591cf41)
* hadoop-common-project/hadoop-common/CHANGES.txt


> ClassCastException while using a key created by keytool to create encryption zone. 
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-11481
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11481
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: Yi Yao
>            Assignee: Charles Lamb
>            Priority: Minor
>             Fix For: 2.7.0
>
>         Attachments: HDFS-7067.001.patch, HDFS-7067.002.patch, hdfs7067.keystore
>
>
> I'm using transparent encryption. If I create a key for KMS keystore via keytool and
use the key to create an encryption zone. I get a ClassCastException rather than an exception
with decent error message. I know we should use 'hadoop key create' to create a key. It's
better to provide an decent error message to remind user to use the right way to create a
KMS key.
> [LOG]
> ERROR[user=hdfs] Method:'GET' Exception:'java.lang.ClassCastException: javax.crypto.spec.SecretKeySpec
cannot be cast to org.apache.hadoop.crypto.key.JavaKeyStoreProvider$KeyMetadata'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message