You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Andrew Wang (JIRA)" <ji...@apache.org> on 2014/09/19 03:41:33 UTC
[jira] [Commented] (HADOOP-11110) JavaKeystoreProvider should not
report a key as created if it was not flushed to the backing file
[ https://issues.apache.org/jira/browse/HADOOP-11110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14139852#comment-14139852 ]
Andrew Wang commented on HADOOP-11110:
--------------------------------------
[~tucu00] recommended:
bq. on flush() error (save) the JavaKeystoreProvider should drop the in-memory keystore (which has changes) and reload from file.
> JavaKeystoreProvider should not report a key as created if it was not flushed to the backing file
> -------------------------------------------------------------------------------------------------
>
> Key: HADOOP-11110
> URL: https://issues.apache.org/jira/browse/HADOOP-11110
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.5.0
> Reporter: Andrew Wang
>
> Testing with the KMS backed by JKS reveals the following:
> {noformat}
> [root@dlo-4 ~]# hadoop key create testkey -provider kms://http@localhost:16000/kms
> testkey has not been created. Mkdirs failed to create file:xxxxx
> ....<stack trace>....
> [root@dlo-4 ~]# hadoop key list -provider kms://http@localhost:16000/kms
> Listing keys for KeyProvider: KMSClientProvider[http://localhost:16000/kms/v1/]
> testkey
> {noformat}
> The JKS still has the key in memory and serves it up, but will disappear if the KMS is restarted since it's not flushed to the file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)