Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
When the HiveAuthFactory is constructed in HS2, it initializes a HMSHandler unnecessarily right before the call to: HadoopThriftAuthBridge.startDelegationTokenSecretManager(). If the DelegationTokenStore is configured to be a memoryTokenStore, this step is not needed.
Side effect is creation of useless derby database file on HiveServer2 in secure clusters, causing confusion. This could potentially be skipped if MemoryTokenStore is used.