在Ubuntu virtualbox中安装Oozie



这是我在尝试安装oozie时遇到的错误。

Hadoop-2.5.1Maven-3.2.3Oozie-4.0.0

我正在尝试在Virtualbox中安装它。我也编辑了pom.xml文件。他们是Hadoop和oozie版本的问题吗?

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Oozie Main .................................. SUCCESS [  3.086 s]
[INFO] Apache Oozie Client ................................ SUCCESS [ 25.084 s]
[INFO] Apache Oozie Hadoop 1.1.1.oozie-4.0.0 .............. SUCCESS [  1.705 s]
[INFO] Apache Oozie Hadoop Distcp 1.1.1.oozie-4.0.0 ....... SUCCESS [  0.238 s]
[INFO] Apache Oozie Hadoop 1.1.1.oozie-4.0.0 Test ......... SUCCESS [  0.517 s]
[INFO] Apache Oozie Hadoop 2.2.0.oozie-4.0.0 .............. SUCCESS [01:41 min]
[INFO] Apache Oozie Hadoop 2.2.0.oozie-4.0.0 Test ......... SUCCESS [ 35.359 s]
[INFO] Apache Oozie Hadoop Distcp 2.2.0.oozie-4.0.0 ....... SUCCESS [  3.244 s]
[INFO] Apache Oozie Hadoop 0.23.5.oozie-4.0.0 ............. SUCCESS [  5.024 s]
[INFO] Apache Oozie Hadoop 0.23.5.oozie-4.0.0 Test ........ SUCCESS [  0.432 s]
[INFO] Apache Oozie Hadoop Distcp 0.23.5.oozie-4.0.0 ...... SUCCESS [  0.275 s]
[INFO] Apache Oozie Hadoop Libs ........................... SUCCESS [  3.906 s]
[INFO] Apache Oozie Hbase 0.94.2.oozie-4.0.0 .............. SUCCESS [  0.763 s]
[INFO] Apache Oozie Hbase Libs ............................ SUCCESS [  1.121 s]
[INFO] Apache Oozie HCatalog 0.5.0.oozie-4.0.0 ............ SUCCESS [  5.821 s]
[INFO] Apache Oozie HCatalog 0.6.0.oozie-4.0.0 ............ SUCCESS [ 26.194 s]
[INFO] Apache Oozie HCatalog Libs ......................... SUCCESS [  1.084 s]
[INFO] Apache Oozie Share Lib Oozie ....................... FAILURE [ 10.767 s]
[INFO] Apache Oozie Share Lib HCatalog .................... SKIPPED
[INFO] Apache Oozie Core .................................. SKIPPED
[INFO] Apache Oozie Docs .................................. SKIPPED
[INFO] Apache Oozie Share Lib Pig ......................... SKIPPED
[INFO] Apache Oozie Share Lib Hive ........................ SKIPPED
[INFO] Apache Oozie Share Lib Sqoop ....................... SKIPPED
[INFO] Apache Oozie Share Lib Streaming ................... SKIPPED
[INFO] Apache Oozie Share Lib Distcp ...................... SKIPPED
[INFO] Apache Oozie WebApp ................................ SKIPPED
[INFO] Apache Oozie Examples .............................. SKIPPED
[INFO] Apache Oozie Share Lib ............................. SKIPPED
[INFO] Apache Oozie Tools ................................. SKIPPED
[INFO] Apache Oozie MiniOozie ............................. SKIPPED
[INFO] Apache Oozie Distro ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:53 min
[INFO] Finished at: 2014-10-30T08:29:55+05:30
[INFO] Final Memory: 43M/105M
[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.0: The following artifacts could not be resolved: org.apache.oozie:oozie-hadoop:jar:2.5.0.oozie-4.0.0, org.apache.oozie:oozie-hadoop-test:jar:2.5.0.oozie-4.0.0: Could not find artifact org.apache.oozie:oozie-hadoop:jar:2.5.0.oozie-4.0.0 in central (http://repo1.maven.org/maven2) -> [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

我在Hadoop2.5.1中构建oozie 4.0.1时也遇到了这个错误。对于这个构建,我只更改了<OOZIE_BUILD_HOME>/pom.xml中的hadoop版本然后我更改了下面文件夹中的hadoop版本,我的错误得到了解决。

 <OOZIE_HOME>/hadooplibs/hadoop-2/pom.xml
 <OOZIE_HOME>/hadooplibs/hadoop-distcp-2/pom.xml
 <OOZIE_HOME>/hadooplibs/hadoop-test-2/pom.xml 

+1关于依赖关系问题。请尝试在oozie根目录的mvn之前运行以下操作。

find . -name pom.xml | xargs sed -ri 's/(2.2.0-SNAPSHOT)/2.5.1/'

最新更新