Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
There is an indefinite caching of key provider uri in dfsclient.
Relevant piece of code.
/** * The key provider uri is searched in the following order. * 1. If there is a mapping in Credential's secrets map for namenode uri. * 2. From namenode getServerDefaults rpc. * 3. Finally fallback to local conf. * @return keyProviderUri if found from either of above 3 cases, * null otherwise * @throws IOException */ URI getKeyProviderUri() throws IOException { if (keyProviderUri != null) { return keyProviderUri; } // Lookup the secret in credentials object for namenodeuri. Credentials credentials = ugi.getCredentials(); ... ...
Once the key provider uri is set, it won't refresh the value even if the key provider uri on namenode is changed.
For long running clients like on oozie servers, this means we have to bounce all the oozie servers to get the change reflected.
After this change, the client will cache the value for an hour after which it will issue getServerDefaults call and will refresh the key provider uri.
Attachments
Attachments
Issue Links
- is broken by
-
HADOOP-14104 Client should always ask namenode for kms provider path.
- Resolved