Description
Audit framework need to cache the getHostName() values to reuse for successive calls. This will avoid the slowness of components when audit is enabled and DNS lookup is used without localhost configuration. Caching the value will resolve the issue of slowness of hadoop components which uses ranger and audit is enabled and localhost is not configure is DNS lookup is used.