Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9784

Example usage is not correct in Transparent Encryption document

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.2, 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 2.7.3, 3.0.0-alpha1
    • Component/s: documentation
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      It says

      # As the normal user, create a new encryption key
      hadoop key create myKey
      

      But, this actually fails with the below error.

      $ 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)
      

      Though I'm not sure why it is so, I think the document should be fixed to use only lowercase in key names.

        Attachments

        1. HADOOP-12779.1.patch
          0.9 kB
          Takashi Ohnishi

          Issue Links

            Activity

              People

              • Assignee:
                bwtakacy Takashi Ohnishi
                Reporter:
                bwtakacy Takashi Ohnishi
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: