You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Andrey Zagrebin (Jira)" <ji...@apache.org> on 2020/05/15 16:46:00 UTC

[jira] [Commented] (FLINK-17077) FLINK_CONF_DIR environment variable to locate flink-conf.yaml in Docker container

    [ https://issues.apache.org/jira/browse/FLINK-17077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17108454#comment-17108454 ] 

Andrey Zagrebin commented on FLINK-17077:
-----------------------------------------

[~elanv] Thanks for looking this.
You can configure Flink in its docker image by [adding env var FLINK_PROPERTIES|https://github.com/apache/flink/blob/master/docs/ops/deployment/docker.md#configure-options] or you can [mount a volume to override the original path /opt/flink/conf|https://github.com/apache/flink/blob/master/docs/ops/deployment/docker.md#provide-custom-configuration].
Would the suggested ways solve your original problem with custom conf dir?
Ideally it would be nice to avoid adding more API to maintain if it is already possible using more general methods.

> FLINK_CONF_DIR environment variable to locate flink-conf.yaml in Docker container
> ---------------------------------------------------------------------------------
>
>                 Key: FLINK-17077
>                 URL: https://issues.apache.org/jira/browse/FLINK-17077
>             Project: Flink
>          Issue Type: Improvement
>          Components: Deployment / Docker
>            Reporter: Eui Heo
>            Assignee: Eui Heo
>            Priority: Major
>              Labels: Kubernetes, docker
>
> To use flink-conf.yaml outside Flink home directory, we should use FLINK_CONF_DIR.
> But despite of FLINK_CONF_DIR is provided, docker-entrypoint.sh in official flink-docker doesn't know FLINK_CONF_DIR and it is ignored when append additional flink properties to flink-conf.yaml. It would be good to use FLINK_CONF_DIR for the location of flink-conf.yaml, if user provide it.
> https://github.com/apache/flink-docker/blob/master/docker-entrypoint.sh#L23



--
This message was sent by Atlassian Jira
(v8.3.4#803005)