mongo-hadoop集成问题

gjmwrych  于 2021-05-29  发布在  Hadoop
关注(0)|答案(2)|浏览(364)

我正在尝试集成hadoop和mongo。我从git下载了mongohadoop文件,并尝试使用下面的代码构建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

有人能告诉我怎么解决这个问题吗

j8yoct9x

j8yoct9x1#

你确定有网络连接吗?
在控制台中尝试此操作以检查网络是否正常:
$wget公司https://repo1.maven.org/maven2/org/apache/commons/commons-math3/3.4.1/commons-math3-3.4.1.jar

lrl1mhuk

lrl1mhuk2#

我的防火墙阻止了连接。所以我禁用了防火墙,重新启动了虚拟机。现在它工作得很好

相关问题