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

[KMS] Improve KeyAuthorizationKeyProvider#toString()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 3.3.0
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: