你能帮我解决oozie安装错误:
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oozie-core ---
[INFO] Compiling 486 source files to /opt/oozie/oozie-4.2.0/core/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /opt/oozie/oozie-4.2.0/core/src/main/java/org/apache/oozie/dependency/HCatURIHandler.java:[273,47] error: cannot find symbol
[INFO] 1 error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project oozie-core: Compilation failure
[ERROR] /opt/oozie/oozie-4.2.0/core/src/main/java/org/apache/oozie/dependency/HCatURIHandler.java:[273,47] error: cannot find symbol
[ERROR] -> [Help 1]
我在Psedo模式下使用mvn版本运行hadoop:3.3.9,java:1.8,hadoop:2.7.2,oozie:4.2.0。
我已下载http://mirrors.whoishostingthis.com/apache/oozie/4.2.0/oozie-4.2.0.tar.gz/oozie-4.2.0.tar.gz并解开了它。然后我从bin目录运行./mkdistro.sh -DskipTests。
I have modified my hadoop-version and java-version in the pom.xml
<targetJavaVersion>1.8</targetJavaVersion>
<hadoop.version>2.7.2</hadoop.version>
<hive.version>1.2.1</hive.version>
谢谢。
答案 0 :(得分:0)
我手动应用了OOZIE-2305.01.patch(https://issues.apache.org/jira/browse/OOZIE-2305)并且它有效。 (仅供参考,发布说明&#34; oozie 4.2.0&#34;不包含此补丁)
因此,根据补丁修改以下java文件:&#34; /opt/oozie/oozie-4.2.0/core/src/main/java/org/apache/oozie/dependency/HCatURIHandler。的java&#34;文件。
进行更改后,我已从其离开的位置重新启动安装: sudo mvn org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile -rf:oozie-core
我希望这会有所帮助,如果您需要任何帮助来更新&#34; HCateURIHandler.java&#34;
,请告诉我。