I was able to get around this by excluding the transitive dependencies since I only needed the hive-exec file to compile the project. However, I still think that the project file should be fixed in the Hortonworks repo as it's pointing to an artifact that does not exist in any public repositories.
... View more
We're using the Hortonworks repository to build our Hadoop project using Maven. For our project, one of the dependencies is on hive-exec JAR file. The version in HDP 3.1.4 for hive-exec in our HDP distribution is 220.127.116.11.1.4.0-315 and the dependency is specified as:
As Maven resolves all transitive dependencies automatically, this JAR file is giving the following error:
Could not find artifact org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:18.104.22.168.6.5.0-SNAPSHOT in hortonworks (http://repo.hortonworks.com/content/groups/public)
By viewing the dependency tree for hive-exec, this specific snippet is related to the error:
The version 22.214.171.124.6.5.0-SNAPSHOT for hadoop-yarn-server-resourcemanager is specified in the parent POM of the Hive project within the Hortonworks repository. From the error, and from own research, this SNAPSHOT version does not exist in any repository, Hortonworks, Maven Central or Apache-Snapshot repository which leads to the build error. The version number is obtained from the property defined in the Apache Hive parent pom:
Prior version of HDP (3.1.0), hive-exec had a dependency on hive-shims-0.23 with the dependency tree of:
It looks like hive-shims version was lowered in HDP 3.1.4 and the hadoop-yarn-server-resourcemanager versions specified does not exist. Since the transitive dependencies are not resolved as per what's provided in the POM files for the projects/dependencies in the Hortonworks repostiory, is this an issue with HDP 3.1.4? Or is there something I can do in my own POM file to resolve this?
... View more