git - mongo-hadoop集成问题

标签 git mongodb hadoop bigdata

我正在尝试集成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

谁能告诉我如何解决此问题

最佳答案

您确定有网络连接吗?

在控制台中尝试此操作以检查网络是否正常:

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

关于git - mongo-hadoop集成问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35377419/

相关文章:

git - CircleCI过滤器 pull 请求

git - 严重损坏的 git 存储库

Hadoop - 文件到 block 的映射

hadoop - Hbase 客户端创建数千个到单个服务器的连接

git grep——但仅限于索引中的新文件或修改过的文件

java - 使用 Chef 在克隆的存储库上运行 mvn install

r - MongoDB 和 R 中的 JSON 解析错误

java - Cursor.hasNext 抛出 java.util.NoSuchElementException

node.js - 到时间后自动删除数据

exception - 帮助 : org. apache.hadoop.hbase.MasterNotRunningException 12.34.56.78:60000