You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Canbin Zheng (Jira)" <ji...@apache.org> on 2020/03/20 04:00:00 UTC

[jira] [Updated] (FLINK-16625) Extract BootstrapTools#getEnvironmentVariables to a general utility in ConfigurationUtils

     [ https://issues.apache.org/jira/browse/FLINK-16625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Canbin Zheng updated FLINK-16625:
---------------------------------
    Description: 
{{BootstrapTools#getEnvironmentVariables}} actually is a general utility to extract key-value pairs with specified prefix trimmed from the Flink Configuration object. It can not only be used to extract customized environment variables in the YARN setup but also for customized annotations/labels/node-selectors in the Kubernetes setup.

This ticket proposes to rename it to {{ConfigurationUtils#getPrefixedKeyValuePairs}} and move it to the {{flink-core}} module as a more general utility to share for the YARN/Kubernetes setup.

  was:
{{BootstrapTools#getEnvironmentVariables}} actually is a general utility to extract key-value pairs with specified prefix trimmed from the Flink Configuration object. It can not only be used to extract customized environment variables in the YARN setup but also for customized annotations/labels/node-selectors in the Kubernetes setup.

This ticket proposes to rename it to {{ConfigurationUtil#getPrefixedKeyValuePairs}} and move it to the {{flink-core}} module as a more general utility to share for the YARN/Kubernetes setup.


> Extract BootstrapTools#getEnvironmentVariables to a general utility in ConfigurationUtils
> -----------------------------------------------------------------------------------------
>
>                 Key: FLINK-16625
>                 URL: https://issues.apache.org/jira/browse/FLINK-16625
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / Core
>            Reporter: Canbin Zheng
>            Assignee: Canbin Zheng
>            Priority: Minor
>             Fix For: 1.11.0
>
>
> {{BootstrapTools#getEnvironmentVariables}} actually is a general utility to extract key-value pairs with specified prefix trimmed from the Flink Configuration object. It can not only be used to extract customized environment variables in the YARN setup but also for customized annotations/labels/node-selectors in the Kubernetes setup.
> This ticket proposes to rename it to {{ConfigurationUtils#getPrefixedKeyValuePairs}} and move it to the {{flink-core}} module as a more general utility to share for the YARN/Kubernetes setup.



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