Oozie 4.3.0 在 Hadoop 2.9.0 上构建失败

Oozie 4.3.0 build failed on Hadoop 2.9.0

我 运行 使用这样的命令构建:

./mkdistro.sh -DskipTests 

还有这个:

./mkdistro.sh -DskipTests -D hadoop.version=2.3.0 -P uber -P hadoop-2

但全部失败并显示错误消息:

[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /root/oozie-4.3.0/hadooplibs/hadoop-utils-2/src/main/java/org/apache/oozie/action/hadoop/LauncherMainHadoopUtils.java:[31,49] error: cannot find symbol [ERROR] package org.apache.hadoop.yarn.api.protocolrecords /root/oozie-4.3.0/hadooplibs/hadoop-utils-2/src/main/java/org/apache/oozie/action/hadoop/LauncherMainHadoopUtils.java:[70,21] error: cannot find symbol [ERROR] class LauncherMainHadoopUtils /root/oozie-4.3.0/hadooplibs/hadoop-utils-2/src/main/java/org/apache/oozie/action/hadoop/LauncherMainHadoopUtils.java:[71,11] error: cannot find symbol [INFO] 3 errors ... 我还尝试导出 HADOOP_CLASSPATHCLASSPATH 变量以指向 Hadoop 库,但都因相同的错误而失败。我不确定是否失败,因为构建命令找不到hadoop 库或者它不支持Hadoop 版本2.9.0。

有什么想法吗?

观看我新创建的博客,逐步安装 oozie-4.3.0 hadoop-2.9.0

Installing apache oozie-4.3.0 on existing apache hadoop-2.9.0

希望对您有所帮助。