簡體   English   中英

Windows 10 環境中 docker-compose 中 Flink state.checkpoints.dir 的路徑

[英]Path for Flink state.checkpoints.dir in docker-compose in Windows 10 environment

I have Windows 10 OS, docker-compose and want to work with Apache Flink tutorial Playground, docker-compose starting correctly starting docker-compose but after several minutes of work, Apache Flink has to create checkpoints, but there is some problem with access to the file system.

例外:

org.apache.flink.runtime.checkpoint.CheckpointException: Could not finalize the pending checkpoint 104. Failure reason: Failure to finalize checkpoint.
    at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.completePendingCheckpoint(CheckpointCoordinator.java:1216) ~[flink-dist_2.11-1.12.1.jar:1.12.1]
…..

Caused by: org.apache.flink.util.SerializedThrowable: Mkdirs failed to create file:/tmp/flink-checkpoints-directory/d73c2f87b0d7ea6748a1913ee4b50afe/chk-104
    at org.apache.flink.core.fs.local.LocalFileSystem.create(LocalFileSystem.java:262) ~[flink-dist_2.11-1.12.1.jar:1.12.1]

你能幫我正確的路徑和 docker 訪問嗎?

state.backend: filesystem
state.checkpoints.dir: file:///tmp/flink-checkpoints-directory
state.savepoints.dir: file:///tmp/flink-savepoints-directory

我也嘗試使用完整的 Windows 路徑,但得到了同樣的錯誤。

在此處輸入圖像描述

您使用的是 Windows Docker 容器還是 Linux ZC5FD214CDD0D2B3B4272E73B022BA5C2 容器?

右鍵單擊 Docker 桌面圖標以查看您當前的配置。

  • 切換到 Windows 容器

或者

  • 切換到 Linux 容器

適用於 Windows 的 Docker

您必須根據您的目標 Docker 容器類型配置 Flink 路徑。

注意:您不能同時使用 Windows 和 Linux 容器。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM