You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2019/10/15 08:41:59 UTC

[flink] branch release-1.9 updated: [FLINK-14215][docs] Add how to configure environment variables to documentation

This is an automated email from the ASF dual-hosted git repository.

trohrmann pushed a commit to branch release-1.9
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.9 by this push:
     new f758deb  [FLINK-14215][docs] Add how to configure environment variables to documentation
f758deb is described below

commit f758debb8c8bdf6d70fe1e0934e7cfd3a1ad2e0f
Author: hpeter <hp...@uber.com>
AuthorDate: Sat Oct 12 16:45:34 2019 -0700

    [FLINK-14215][docs] Add how to configure environment variables to documentation
    
    This closes #9887.
---
 docs/ops/config.md | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/docs/ops/config.md b/docs/ops/config.md
index ffc6049..24db421 100644
--- a/docs/ops/config.md
+++ b/docs/ops/config.md
@@ -215,7 +215,6 @@ You have to configure `jobmanager.archive.fs.dir` in order to archive terminated
 
 ## Background
 
-
 ### Configuring the Network Buffers
 
 If you ever see the Exception `java.io.IOException: Insufficient number of network buffers`, you
@@ -303,4 +302,12 @@ When starting a Flink application, users can supply the default number of slots
 
 <img src="{{ site.baseurl }}/fig/slots_parallelism.svg" class="img-responsive" />
 
+### Configuration Runtime Environment Variables
+You have to set config with prefix `containerized.master.env.` and `containerized.taskmanager.env.` in order to set redefined environment variable in ApplicationMaster and TaskManager.
+
+- `containerized.master.env.`: Prefix for passing custom environment variables to Flink's master process. 
+   For example for passing LD_LIBRARY_PATH as an env variable to the AppMaster, set containerized.master.env.LD_LIBRARY_PATH: "/usr/lib/native"
+    in the flink-conf.yaml.
+- `containerized.taskmanager.env.`: Similar to the above, this configuration prefix allows setting custom environment variables for the workers (TaskManagers).
+
 {% top %}