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:48:08 UTC

[flink] branch release-1.8 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.8
in repository https://gitbox.apache.org/repos/asf/flink.git


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

commit d5285d54ef0b44ea7d479b0d5289078fab1f5da8
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 3ae46ee..2294c87 100644
--- a/docs/ops/config.md
+++ b/docs/ops/config.md
@@ -207,7 +207,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
@@ -295,4 +294,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 %}