在Flink开发过程中,如果遇到“flink Unable to instantiate java compiler”的错误,通常表示Flink无法实例化Java编译器。这个问题可能是由于多种原因引起的,例如环境配置问题、依赖冲突等。 原因分析 环境配置问题:如果Java环境没有正确配置,或者Flink与Java版本不兼容,可能会导致这个问题。 依赖冲突:如果项目中存在多个版本...
Caused by: org.apache.flink.client.program.ProgramInvocationException: The main method caused an error: Unable to instantiate java compilerat org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:372)at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExe...
org.apache.flink.client.program.ProgramInvocationException: The main method caused an error: Unable to instantiate java compiler at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:372) at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(Pac...
org.apache.flink.client.program.ProgramInvocationException: The main method caused an error: Unable to instantiate java compiler ··· Caused by: java.lang.IllegalStateException: Unable to instantiate java compiler ··· Caused by: java.lang.ClassCastException: org.codehaus.janino.CompilerFactory can...
[http-nio-8100-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,175] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Unable to instantiate java compiler]...
java.lang.IllegalStateException: Unable to instantiate java compiler at org.apache.calcite.rel.metadata.JaninoRelMetadataProvider.compile(JaninoRelMetadataProvider.java:434) at org.apache.calcite.rel.metadata.JaninoRelMetadataProvider.load3(JaninoRelMetadataProvider.java:375) ...
Unable to instantiate java compiler : hive的版本冲突所致 是由于代码汇总有 hive-exec ,在flink的lib下也有 hive-exec,所以需要将代码中的hive-exec 改成 provided的方式。 java.lang.ClassNotFoundException: org.apache.hadoop.mapred.JobConf 是由于未设置HADOOP_CLASSPATH环境变量所致。
java.lang.IllegalStateException: Unable to instantiate java compiler at org.apache.calcite.rel.metadata.JaninoRelMetadataProvider.compile(JaninoRelMetadataProvider.java:434) at org.apache.calcite.rel.metadata.JaninoRelMetadataProvider.load3(JaninoRelMetadataProvider.java:375) ...
2020-10-0214:48:22,060ERRORcom.flink.streaming.core.JobApplication-任务执行失败:java.lang.IllegalStateException:Unabletoinstantiatejavacompileratorg.apache.calcite.rel.metadata.JaninoRelMetadataProvider.compile(JaninoRelMetadataProvider.java:434)atorg.apache.calcite.rel.metadata.JaninoRelMetadataProvider.load...
core.JobApplication - 任务执行失败: java.lang.IllegalStateException: Unable to instantiate java compiler at org.apache.calcite.rel.metadata.JaninoRelMetadataProvider.compile(JaninoRelMetadataProvider.java:434) at org.apache.calcite.rel.metadata.JaninoRelMetadataProvider.load3(JaninoRelMetadataProvider.java:...