首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >flink作业提交org.apache.flink.runtime.messages.FlinkJobNotFoundException:找不到Flink作业

flink作业提交org.apache.flink.runtime.messages.FlinkJobNotFoundException:找不到Flink作业
EN

Stack Overflow用户
提问于 2020-03-19 21:33:07
回答 1查看 2.1K关注 0票数 0

获取以下flink作业提交错误,

代码语言:javascript
复制
@centos1 flink-1.10.0]$ ./bin/flink run -m 10.0.2.4:8081 ./examples/batch/WordCount.jar --input file:///storage/flink-1.10.0/test.txt --output file:///storage/flink-1.10.0/wordcount_out
Job has been submitted with JobID 33d489aee848401e08c425b053c854f9

------------------------------------------------------------
 The program finished with the following exception:

org.apache.flink.client.program.ProgramInvocationException: The main method caused an error: org.apache.flink.runtime.rest.util.RestClientException: [org.apache.flink.runtime.rest.handler.RestHandlerException: org.apache.flink.runtime.messages.FlinkJobNotFoundException: Could not find Flink job (33d489aee848401e08c425b053c854f9)

……

代码语言:javascript
复制
    Caused by: java.util.concurrent.CompletionException: org.apache.flink.runtime.messages.FlinkJobNotFoundException: Could not find Flink job (33d489aee848401e08c425b053c854f9)
Caused by: org.apache.flink.runtime.messages.FlinkJobNotFoundException: Could not find Flink job (33d489aee848401e08c425b053c854f9)
        at org.apache.flink.runtime.dispatcher.Dispatcher.getJobMasterGatewayFuture(Dispatcher.java:776)
        at org.apache.flink.runtime.dispatcher.Dispatcher.requestJobStatus(Dispatcher.java:505)
        ... 27 more
]

来自任务管理器节点的日志:未找到文件。是在flink簇设置中指向文件的正确方式。

代码语言:javascript
复制
2020-03-19 13:15:29,843 ERROR org.apache.flink.runtime.operators.BatchTask                  - Error in task code:  CHAIN DataSource (at main(WordCount.java:69) (org.apache.flink.api.java.io.TextInputFormat)) -> FlatMap (FlatMap at main(WordCount.java:84)) -> Combine (SUM(1), at main(WordCount.java:87) (1/2)
java.io.IOException: Error opening the Input Split file:/storage/flink-1.10.0/test.txt [0,19]: /storage/flink-1.10.0/test.txt (No such file or directory)
        at org.apache.flink.api.common.io.FileInputFormat.open(FileInputFormat.java:824)
        at org.apache.flink.api.common.io.DelimitedInputFormat.open(DelimitedInputFormat.java:470)

如何排除上述错误,检查什么,flink日志中的线索很少

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-24 04:30:19

发生这种情况的原因是因为您正在跨分布式集群提交作业,而您指定的位置可能只能通过提交作业的Job manager或计算机才能访问。但是,实际的程序和作业执行是在Task Manager中进行的。更好的方法是指定一个所有节点都可以访问的位置,可以是HDFS或NFS。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60758304

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档