CHEN Zhongpu created FLINK-31231:
------------------------------------
Summary: flink-playgrounds has permission errors in mounted files
Key: FLINK-31231
URL: https://issues.apache.org/jira/browse/FLINK-31231
Project: Flink
Issue Type: Improvement
Reporter: CHEN Zhongpu
In flink-playgrounds [1], we mount the folders under "/tmp` for both jobmanager
and taskmanager:
{code:java}
- /tmp/flink-checkpoints-directory:/tmp/flink-checkpoints-directory
- /tmp/flink-savepoints-directory:/tmp/flink-savepoints-directory {code}
Docker mounts host volumes preserving the host UUID and GUID (in Linux, they
are both 1000). However, the default user of flink image is "flink" who does
not have the writable permission. As a result, it will raise an error.
There are two workaround solutions:
* Grant the world writable for those two folders (i.e., `chmod o+wx
/tmp/flink-checkpoints-directory`)
* Specify the user in docker-compose (i.e., "user: 1000:1000")
But the second method may not be applied in Windows host.
[1] https://github.com/apache/flink-playgrounds
--
This message was sent by Atlassian Jira
(v8.20.10#820010)