2016-02-13 54 views
-1

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

[[email protected] 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 

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

回答

0

我的防火墙挡住了连接。所以我禁用了防火墙并重启了虚拟机。现在它工作完美