无法在项目oozie-sharelib-oozie上执行目标

时间:2015-02-09 18:16:06

标签: maven hadoop oozie

我正在尝试使用ubuntu 13.10中的hadoop-2.2.0和JDK-1.7配置oozie-4.0.1,但即使在以下三个文件中更改hadoop的版本后也会出现以下错误:

oozie_home/hadooplibs/hadoop-2/pom.xml
oozie_home/hadooplibs/hadoop-distcp-2/pom.xml
oozie_home/hadooplibs/hadoop-test-2/pom.xml
oozie_home/pom.xml

错误:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:03.925s
[INFO] Finished at: Mon Feb 09 23:38:56 IST 2015
[INFO] Final Memory: 34M/281M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project oozie-sharelib-oozie: Could not resolve dependencies for project org.apache.oozie:oozie-sharelib-oozie:jar:4.0.1: The following artifacts could not be resolved: org.apache.oozie:oozie-hadoop:jar:2.2.0.oozie-4.0.1, org.apache.oozie:oozie-hadoop-test:jar:2.2.0.oozie-4.0.1: Failure to find org.apache.oozie:oozie-hadoop:jar:2.2.0.oozie-4.0.1 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :oozie-sharelib-oozie

ERROR, Oozie distro creation failed

我关注此链接:http://gauravkohli.com/2014/08/26/apache-oozie-installation-on-hadoop-2-4-1/。任何人都可以帮忙。

1 个答案:

答案 0 :(得分:0)

我遇到了上述问题因为Maven无法访问完全的互联网访问权限,之后在使用NameServer IP更新resolve.conf文件后解决了这个问题。