Details
Description
Similar to thrift client pool, we could do the same for the HttpClient (so that Oozie, WebHDFS, any REST API get the cookie caching without cumbersome dedicated pools.
rm_pool = resource_manager_api.get_resource_manager_pool() rm_api = rm_pool.get(request.user) job = Application(e.job, rm_api) rm_pool.put(rm_api)
-->
rm_api = resource_manager_api.get_resource_manager(request.user) job = Application(e.job, rm_api)