【问题标题】:mongo-hadoop integration issuemongo-hadoop 集成问题
【发布时间】:2016-02-13 07:43:54
【问题描述】:

我正在尝试集成 Hadoop 和 Mongo。我从 git 下载了 mongo-hadoop 文件,并尝试使用下面的方法构建 jar 文件。但是我遇到了错误

[krishna@localhost mongo-hadoop]$ ./gradlew jar –Phadoop_version='2.4'

FAILURE: Build failed with an exception.

* Where:
Build file '/home/krishna/mongo-hadoop/build.gradle' line: 318

* What went wrong:
A problem occurred evaluating root project 'mongo-hadoop'.
> Could not resolve all dependencies for configuration ':spark:compile'.
> Could not download artifact 'commons-math3.jar  (org.apache.commons:commons-math3:3.4.1)'
  > Could not GET 'https://repo1.maven.org/maven2/org/apache/commons/commons-math3/3.4.1/commons-math3-3.4.1.jar'.
     > Network is unreachable

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or -- debug option to get more log output.

BUILD FAILED

谁能告诉我如何解决这个问题

【问题讨论】:

    标签: git mongodb hadoop bigdata


    【解决方案1】:

    您确定有网络连接吗?

    在控制台试试这个检查网络是否正常:

    $ wget https://repo1.maven.org/maven2/org/apache/commons/commons-math3/3.4.1/commons-math3-3.4.1.jar

    【讨论】:

      【解决方案2】:

      我的防火墙阻止了连接。所以我禁用了防火墙并重新启动了虚拟机。现在它运行良好

      【讨论】:

        猜你喜欢
        • 2021-10-29
        • 1970-01-01
        • 2015-08-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多