HIVE-29284 Remove tight yarn-registry coupling from hive-exec
What changes were proposed in this pull request?
I am proposing to remove the tight dependency coupling between hive-exec and hadoop-yarn-registry (to address HIVE-29284).
Why are the changes needed?
hive-exec pulls in hadoop-yarn-registry as a direct dependency, but registry classes are only used for building a local resource map for LLAP. This map can be built without the actual class instances getting loaded, using class name literals only. Removing hadoop-yarn-registry as a direct dependency will prevent pulling in its whole transitive dependency tree when one only wants to use hive-exec functionality without LLAP. (e.g apache spark)
Does this PR introduce any user-facing change?
No
How was this patch tested?
This patch will be tested by the pre merge tests executed for this pull request.
PR https://github.com/prestodb/presto/pull/25685 fixes this.