Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB80C18BB0 for ; Tue, 9 Feb 2016 18:36:18 +0000 (UTC) Received: (qmail 27326 invoked by uid 500); 9 Feb 2016 18:36:18 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 27239 invoked by uid 500); 9 Feb 2016 18:36:18 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 27206 invoked by uid 99); 9 Feb 2016 18:36:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2016 18:36:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 201CA2C1F57 for ; Tue, 9 Feb 2016 18:36:18 +0000 (UTC) Date: Tue, 9 Feb 2016 18:36:18 +0000 (UTC) From: "Akira AJISAKA (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-9784) Example usage is not correct in Transparent Encryption document MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-9784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Akira AJISAKA updated HDFS-9784: -------------------------------- Resolution: Fixed Fix Version/s: 2.7.3 2.8.0 Status: Resolved (was: Patch Available) Committed this to trunk, branch-2, branch-2.8, and branch-2.7. Thanks [~bwtakacy] for the contribution. > Example usage is not correct in Transparent Encryption document > --------------------------------------------------------------- > > Key: HDFS-9784 > URL: https://issues.apache.org/jira/browse/HDFS-9784 > Project: Hadoop HDFS > Issue Type: Bug > Components: documentation > Affects Versions: 3.0.0, 2.7.2 > Reporter: Takashi Ohnishi > Fix For: 2.8.0, 2.7.3 > > Attachments: HADOOP-12779.1.patch > > > It says > {code} > # As the normal user, create a new encryption key > hadoop key create myKey > {code} > But, this actually fails with the below error. > {code} > $ hadoop key create myKey > java.lang.IllegalArgumentException: Uppercase key names are unsupported: myKey > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > at org.apache.hadoop.util.HttpExceptionUtils.validateResponse(HttpExceptionUtils.java:157) > at org.apache.hadoop.crypto.key.kms.KMSClientProvider.call(KMSClientProvider.java:546) > at org.apache.hadoop.crypto.key.kms.KMSClientProvider.call(KMSClientProvider.java:504) > at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createKeyInternal(KMSClientProvider.java:677) > at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createKey(KMSClientProvider.java:685) > at org.apache.hadoop.crypto.key.KeyShell$CreateCommand.execute(KeyShell.java:483) > at org.apache.hadoop.crypto.key.KeyShell.run(KeyShell.java:79) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) > at org.apache.hadoop.crypto.key.KeyShell.main(KeyShell.java:515) > {code} > Though I'm not sure why it is so, I think the document should be fixed to use only lowercase in key names. -- This message was sent by Atlassian JIRA (v6.3.4#6332)