hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7067) ClassCastException while using a key created by keytool to create encryption zone.
Date Mon, 08 Dec 2014 23:51:12 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14238702#comment-14238702

Hadoop QA commented on HDFS-7067:

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  against trunk revision ddffcd8.

    {color:red}-1 patch{color}.  Trunk compilation may be broken.

Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/8960//console

This message is automatically generated.

> ClassCastException while using a key created by keytool to create encryption zone. 
> -----------------------------------------------------------------------------------
>                 Key: HDFS-7067
>                 URL: https://issues.apache.org/jira/browse/HDFS-7067
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: encryption
>    Affects Versions: 2.6.0
>            Reporter: Yi Yao
>            Assignee: Charles Lamb
>            Priority: Minor
>         Attachments: HDFS-7067.001.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

View raw message