为何 flink jobmanager 看日志的时候 总是报错?
Caused by: org.apache.flink.util.FlinkException: Could not retrieve file from transient blob store.
... 10 more
Caused by: java.io.FileNotFoundException: Local file /tmp/jm_b64f8f0b2ca52a5f5f5cac8441ebf1ac/blobStorage/no_job/blob_t-3f731e8b90d10e4a72118158556a551da2e3e33c-03489baf51fc75761f0cb47448aa90f4 does not exist and failed to copy from blob store.
at org.apache.flink.runtime.blob.BlobServer.getFileInternal(BlobServer.java:555) ~[flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.runtime.blob.BlobServer.getFileInternalWithReadLock(BlobServer.java:484) ~[flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.runtime.blob.BlobServer.getFile(BlobServer.java:426) ~[flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.runtime.rest.handler.taskmanager.AbstractTaskManagerFileHandler.lambda$respondToRequest$0(AbstractTaskManagerFileHandler.java:136) ~[flink-dist-1.17.1.jar:1.17.1]
... 9 more
2023-08-30 18:11:21,249 ERROR org.apache.flink.runtime.rest.handler.taskmanager.TaskManagerCustomLogHandler [] - Unhandled exception.
org.apache.flink.util.FlinkException: Could not retrieve file from transient blob store.
at org.apache.flink.runtime.rest.handler.taskmanager.AbstractTaskManagerFileHandler.lambda$respondToRequest$0(AbstractTaskManagerFileHandler.java:138) ~[flink-dist-1.17.1.jar:1.17.1]
at java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source) [?:?]
at java.util.concurrent.CompletableFuture$Completion.run(Unknown Source) [?:?]
at org.apache.flink.shaded.netty4.io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) [flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.shaded.netty4.io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) [flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) [flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) [flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) [flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [flink-dist-1.17.1.jar:1.17.1]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.io.FileNotFoundException: Local file /tmp/jm_b64f8f0b2ca52a5f5f5cac8441ebf1ac/blobStorage/no_job/blob_t-3f731e8b90d10e4a72118158556a551da2e3e33c-03489baf51fc75761f0cb47448aa90f4 does not exist and failed to copy from blob store.
at org.apache.flink.runtime.blob.BlobServer.getFileInternal(BlobServer.java:555) ~[flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.runtime.blob.BlobServer.getFileInternalWithReadLock(BlobServer.java:484) ~[flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.runtime.blob.BlobServer.getFile(BlobServer.java:426) ~[flink-dist-1.17.1.jar:1.17.1]
at org.apache.flink.runtime.rest.handler.taskmanager.AbstractTaskManagerFileHandler.lambda$respondToRequest$0(AbstractTaskManagerFileHandler.java:136) ~[flink-dist-1.17.1.jar:1.17.1]
... 9 more
这个报错信息显示无法从临时 Blob 存储中检索文件。可能的原因是文件在本地的 /tmp 目录中不存在,或者从 Blob 存储中复制文件失败。
要解决这个问题,您可以尝试以下几个步骤:
检查文件路径:确保文件在 /tmp 目录中存在。您可以使用命令行或文件浏览器访问 /tmp/jm_b64f8f0b2ca52a5f5f5cac8441ebf1ac/blobStorage/no_job/ 目录,并检查文件是否在该目录中。
检查 Blob 存储:确保 Blob 存储中存在所需的文件。您可以通过访问 Flink 的 Blob 存储目录来验证文件是否存在,具体路径可能根据您的配置有所不同。
检查权限:确保您的用户具有访问 /tmp 目录和 Blob 存储的权限。如果您没有足够的权限,可能需要联系系统管理员或更改文件的权限。
清理 Blob 存储:如果确定所需文件在 Blob 存储中存在,但仍然无法复制到本地,可以尝试清理 Blob 存储并重新启动 Flink JobManager。这将重新生成 Blob 存储并解决可能的问题。
如果问题仍然存在,建议您提供更多的上下文信息,例如 Flink 版本、相关配置以及任何其他错误堆栈信息,以便更好地诊断和解决问题。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。