【问题标题】:Installing Oozie in Ubuntu virtualbox在 Ubuntu 虚拟机中安装 Oozie
【发布时间】:2015-09-08 15:28:58
【问题描述】:

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

Hadoop - 2.5.1 Maven - 3.2.3 Oozie - 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

【问题讨论】:

    标签: maven ubuntu virtualbox oozie


    【解决方案1】:

    我在 Hadoop 2.5.1 中构建 oozie 4.0.1 时也遇到了这个错误。对于这个构建,我只更改了 &lt;OOZIE_BUILD_HOME&gt;/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 
    

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-11-29
        • 2014-01-30
        • 1970-01-01
        • 1970-01-01
        • 2016-06-16
        • 1970-01-01
        相关资源
        最近更新 更多