gpt4 book ai didi

java - Flink JobExecutionException : akka. client.timeout

转载 作者:行者123 更新时间:2023-11-30 07:48:23 25 4
gpt4 key购买 nike

我正在使用Flink v.1.4.0

我正在尝试通过 IntelliJ 使用 DataSet API 运行作业。请注意,如果我通过 Flink UI 运行相同的作业,则作业运行良好。为了运行该作业,我需要首先通过环境变量指定要处理的数据量。当数量相对较小时,作业运行良好。但随着它变得更大,我开始收到以下错误:

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
31107 [main] ERROR com.company.someLib.SomeClass - Error executing pipeline
org.apache.flink.runtime.client.JobExecutionException: Couldn't retrieve the JobExecutionResult from the JobManager.
at org.apache.flink.runtime.client.JobClient.awaitJobResult(JobClient.java:300)
at org.apache.flink.runtime.client.JobClient.submitJobAndWait(JobClient.java:387)
at org.apache.flink.runtime.minicluster.FlinkMiniCluster.submitJobAndWait(FlinkMiniCluster.scala:565)
at org.apache.flink.runtime.minicluster.FlinkMiniCluster.submitJobAndWait(FlinkMiniCluster.scala:539)
at org.apache.flink.client.LocalExecutor.executePlan(LocalExecutor.java:193)
at org.apache.flink.api.java.LocalEnvironment.execute(LocalEnvironment.java:91)
at com.ubs.digital.comms.graph.emailanalyser.EmailAnalyserPipeline.lambda$runPipeline$1(EmailAnalyserPipeline.java:120)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at com.ubs.digital.comms.graph.emailanalyser.EmailAnalyserPipeline.runPipeline(EmailAnalyserPipeline.java:87)
at com.ubs.digital.comms.graph.emailanalyser.EmailAnalyserPipeline.main(EmailAnalyserPipeline.java:65)
Caused by: org.apache.flink.runtime.client.JobClientActorSubmissionTimeoutException: Job submission to the JobManager timed out. You may increase 'akka.client.timeout' in case the JobManager needs more time to configure and confirm the job submission.

我可以看到建议是:

You may increase 'akka.client.timeout' in case the JobManager needs more time to configure and confirm the job submission.

但我怀疑问题远不止于此。但为了到达那里,我需要首先配置akka.client.timeout。我如何在 IntelliJ 中执行此操作?超时时间应该是多长?

此外,到底是什么原因造成的?我需要增加堆内存或其他什么吗?谢谢。

最佳答案

我能够弄清楚,而且也不是那么困难。我所要做的就是转到“运行”>“编辑配置”,然后在“程序参数”字段中的“配置”选项卡下,添加以下内容:

-Dakka.client.timeout:600s
-Dakka.ask.timeout:600s

但是,我应该指出,这并没有完全解决我遇到的问题。

关于java - Flink JobExecutionException : akka. client.timeout,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49284115/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com