【问题标题】:HBase 2.1.0 - CDH6.3.3 - Gradle Import failsHBase 2.1.0 - CDH6.3.3 - Gradle 导入失败
【发布时间】:2020-10-15 08:24:43
【问题描述】:

我尝试在我的 gradle 文件中导入 cloudera 6.3.3 的 hbase 2.1.0,如下所示:

compile ("org.apache.hbase:hbase-client:2.1.0-cdh6.3.3"){
        exclude group: 'org.slf4j'
        exclude group: 'org.jruby'
        exclude group: 'jruby-complete'
        exclude group: 'org.codehaus.jackson'
        exclude group: 'org.codehaus.jettison'
    }

当我刷新 gradle 时,它​​显示以下错误:

Could not resolve org.apache.hbase:hbase-client:2.1.0-cdh6.3.3.

我尝试刷新 gradle 依赖项,但没有成功

任何帮助表示赞赏!提前致谢!

【问题讨论】:

    标签: gradle hbase


    【解决方案1】:

    当您对此类依赖项有疑问时,请使用诸如 mvnrepository 之类的存储库聚合器并搜索模块。可以找到HBase Client here的2.1.0-cdh6.3.3版本:

    从描述中可以看出,该工件位于 Cloudera Maven 存储库中,因此您需要在 Gradle 中进行配置:

    repositories {
        maven {
            url "https://repository.cloudera.com/artifactory/cloudera-repos/"
        }
    }
    

    另外,不要使用 compile 配置,因为它已被弃用。请改用implementation 或类似名称。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-13
    • 1970-01-01
    相关资源
    最近更新 更多