下载org.apache.hive.hive-exec 1.2.1版的依赖项时出错

时间:2017-10-11 16:30:46

标签: scala hadoop hive user-defined-functions

我正在尝试在sbt中下载Hive jar,我收到以下错误。有没有遇到过这个?请告诉我为了创建一个扩展GenericUDF类的类,我需要下载什么是正确的hive版本

这是我的SBT文件

name := "Test"  version := "0.1"  scalaVersion := "2.11.8"   libraryDependencies += "org.apache.hive" % "hive-exec" % "1.2.1" 

以下是我收到的错误消息

[error]     at java.lang.Thread.run(Thread.java:748)
[error] (*:update) sbt.librarymanagement.ResolveException: unresolved dependency: org.pentaho#pentaho-aggdesigner-algorithm;5.1.5-jhyde: not found
[error] (*:ssExtractDependencies) sbt.librarymanagement.ResolveException: unresolved dependency: org.pentaho#pentaho-aggdesigner-algorithm;5.1.5-jhyde: not found

2 个答案:

答案 0 :(得分:1)

如果在使用 gradle 时发生同样的错误,将其添加到 repositories 文件的 build.gradle 部分为我解决了这个问题:

maven { url "https://public.nexus.pentaho.org/repository/proxy-public-3rd-party-release" }

答案 1 :(得分:0)

添加conjars repo。它将下载所需的库。将以下行添加到build.sbt文件中:

libraryDependencies += "org.apache.hive" % "hive-exec" % "1.2.1"
libraryDependencies += "org.pentaho" % "pentaho-aggdesigner-algorithm" % "5.1.5-jhyde" % Test

resolvers += Resolver.mavenLocal
resolvers += "Cascading repo" at "http://conjars.org/repo"