Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14784

[KMS] Improve KeyAuthorizationKeyProvider#toString()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:

      Description

      When KMS server starts, it loads KeyProviderCryptoExtension and print the following message:

      2017-08-17 04:57:13,348 INFO org.apache.hadoop.crypto.key.kms.server.KMSWebApp: Initialized KeyProviderCryptoExtension EagerKeyGeneratorKeyProviderCryptoExtension: KeyProviderCryptoExtension: CachingKeyProvider: jceks://file@/var/lib/kms/kms.keystore
      

      However, this is confusing as KeyAuthorizationKeyProvider is loaded by not shown in this message. KeyAuthorizationKeyProvider#toString should be improved, so that in addition to its internal provider, also print its own class name when loaded.

        Attachments

        1. HADOOP-14784.001.patch
          0.7 kB
          Yeliang Cang

          Activity

            People

            • Assignee:
              Cyl Yeliang Cang
              Reporter:
              weichiu Wei-Chiu Chuang
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: