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

ASF GitHub Bot commented on FLINK-5253:
---------------------------------------

Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3356#discussion_r125670308
  
    --- Diff: 
flink-yarn/src/main/java/org/apache/flink/yarn/cli/FlinkYarnCLI.java ---
    @@ -149,13 +148,7 @@ public YarnClusterDescriptorV2 createDescriptor(String 
defaultApplicationName, C
                        yarnClusterDescriptor.setJobManagerMemory(jmMemory);
                }
     
    -           String[] dynamicProperties = null;
    -           if (cmd.hasOption(DYNAMIC_PROPERTIES.getOpt())) {
    -                   dynamicProperties = 
cmd.getOptionValues(DYNAMIC_PROPERTIES.getOpt());
    -           }
    -           String dynamicPropertiesEncoded = 
StringUtils.join(dynamicProperties, YARN_DYNAMIC_PROPERTIES_SEPARATOR);
    -
    -           
yarnClusterDescriptor.setDynamicPropertiesEncoded(dynamicPropertiesEncoded);
    +           
GlobalConfiguration.setDynamicProperties(retrieveDynamicProperties(cmd, 
DYNAMIC_PROPERTIES));
    --- End diff --
    
    Can we avoid the static dynamic properties field?


> Remove special treatment of "dynamic properties"
> ------------------------------------------------
>
>                 Key: FLINK-5253
>                 URL: https://issues.apache.org/jira/browse/FLINK-5253
>             Project: Flink
>          Issue Type: Sub-task
>          Components: YARN
>         Environment: {{flip-6}} feature branch
>            Reporter: Stephan Ewen
>              Labels: flip-6
>
> The YARN client accepts configuration keys as command line parameters.
> Currently these are send to the AppMaster and TaskManager as "dynamic 
> properties", encoded in a special way via environment variables.
> The mechanism is quite fragile. We should simplify it:
>   - The YARN client takes the local {{flink-conf.yaml}} as the base.
>   - It overwrite config entries with command line properties when preparing 
> the configuration to be shipped to YARN container processes (JM / TM)
>   - No additional handling neccessary



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to