我使用hadoop和hive依赖项在gradle中开发项目是项目的依赖项
org.apache.hive:hive-common:1.2.1'
'org.apache.hive:hive-service:1.2.1'
'org.apache.hive:hive-metastore:1.2.1'
'org.apache.derby:derby:10.11.1.1'
'org.apache.hive:hive-jdbc:1.2.1'
但我面临以下错误,我无法解决奇妙的事情是,如果我使用maven构建项目并在maven项目中添加相同的依赖项,它的工作正常,请你告诉我与gradle相关的问题 错误:
Could not resolve all dependencies for configuration ':compile'.
> Could not find org.pentaho:pentaho-aggdesigner-algorithm:5.1.5-jhyde.
Searched in the following locations:
https://jcenter.bintray.com/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom
https://jcenter.bintray.com/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
Required by:
:HiveUnit:unspecified > org.apache.hive:hive-service:1.2.1 > org.apache.hive:hive-exec:1.2.1 > org.apache.calcite:calcite-core:1.2.0-incubating
答案 0 :(得分:2)
您需要在build.gradle文件中添加建议的hack
repositories {
mavenCentral()
maven {
url "http://conjars.org/repo"
}
}
答案 1 :(得分:1)
可以使用hack
repositories {
mavenCentral()
maven {
url "http://conjars.org/repo"
}
}