开发者社区 > 大数据与机器学习 > 实时计算 Flink > 正文

为何 flink jobmanager 看日志的时候 总是报错?

为何 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

展开
收起
三分钟热度的鱼 2023-09-05 22:31:55 460 0
1 条回答
写回答
取消 提交回答
  • 这个报错信息显示无法从临时 Blob 存储中检索文件。可能的原因是文件在本地的 /tmp 目录中不存在,或者从 Blob 存储中复制文件失败。

    要解决这个问题,您可以尝试以下几个步骤:

    检查文件路径:确保文件在 /tmp 目录中存在。您可以使用命令行或文件浏览器访问 /tmp/jm_b64f8f0b2ca52a5f5f5cac8441ebf1ac/blobStorage/no_job/ 目录,并检查文件是否在该目录中。

    检查 Blob 存储:确保 Blob 存储中存在所需的文件。您可以通过访问 Flink 的 Blob 存储目录来验证文件是否存在,具体路径可能根据您的配置有所不同。

    检查权限:确保您的用户具有访问 /tmp 目录和 Blob 存储的权限。如果您没有足够的权限,可能需要联系系统管理员或更改文件的权限。

    清理 Blob 存储:如果确定所需文件在 Blob 存储中存在,但仍然无法复制到本地,可以尝试清理 Blob 存储并重新启动 Flink JobManager。这将重新生成 Blob 存储并解决可能的问题。

    如果问题仍然存在,建议您提供更多的上下文信息,例如 Flink 版本、相关配置以及任何其他错误堆栈信息,以便更好地诊断和解决问题。

    2023-09-28 15:25:40
    赞同 展开评论 打赏

实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。

相关产品

  • 实时计算 Flink版
  • 相关电子书

    更多
    Flink CDC Meetup PPT - 龚中强 立即下载
    Flink CDC Meetup PPT - 王赫 立即下载
    Flink CDC Meetup PPT - 覃立辉 立即下载