I've a typical transitive dependency problem for which I couldn't find a resolution.
My project uses spark
and hadoop-tools
dependencies.
spark
uses hadoop-mapreduce-client-core
and
hadoop-tools
uses hadoop-core
hadoop-core
and hadoop-mapreduce-client-core
conflicts with each other. In other words, hadoop-mapreduce-client-core
is a newer version (mapreduce2) of hadoop-core
(mapreduce1).
In this project, I will have some executables that runs spark
jobs and some that runs Distcp
(depends on hadoop-tools
). How do I specify this relationship/dependency/force in build.gradle
so both spark
flows and hadoop-tools
flows finds their own dependencies at runtime.