Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21047

Read the HMS backend database password and truststore password during PersistenceManagerFactory initialization time

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0
    • None
    • Standalone Metastore
    • None

    Description

      This was pointed out by vihangk1 as part of the review for HIVE-20992.

      As part of the redaction of the javax.jdo.option.ConnectionPassword and metastore.dbaccess.ssl.truststore.password properties, they both use the Hadoop Credential Provider API to prevent the passwords from being stored in plain text.

      However, these are both being read in setConf() in ObjectStore, thereby calling the expensive decrypt during every new database connection initialization despite these values almost never changing.

      We should instead move these reads into the PersistenceManagerFactory initPMF() method and cache their values so they are only read once when the HMS starts.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mramdenbourg Morio Ramdenbourg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: