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

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

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

    https://github.com/apache/flink/pull/3414#discussion_r104862993
  
    --- Diff: 
flink-yarn/src/main/java/org/apache/flink/yarn/cli/FlinkYarnSessionCli.java ---
    @@ -306,12 +308,16 @@ public AbstractYarnClusterDescriptor 
createDescriptor(String defaultApplicationN
                if (cmd.hasOption(JM_MEMORY.getOpt())) {
                        int jmMemory = 
Integer.valueOf(cmd.getOptionValue(JM_MEMORY.getOpt()));
                        yarnClusterDescriptor.setJobManagerMemory(jmMemory);
    +           } else if 
(config.containsKey(ConfigConstants.JOB_MANAGER_HEAP_MEMORY_KEY)) {
    +                   
yarnClusterDescriptor.setJobManagerMemory(config.getInteger(ConfigConstants.JOB_MANAGER_HEAP_MEMORY_KEY,
 ConfigConstants.DEFAULT_JOB_MANAGER_HEAP_MEMORY));
    --- End diff --
    
    That's a good idea. we don't need to set it explicitly here if we init it 
in constructor :)


> jobmanager.heap.mb and taskmanager.heap.mb not work in YARN mode
> ----------------------------------------------------------------
>
>                 Key: FLINK-5904
>                 URL: https://issues.apache.org/jira/browse/FLINK-5904
>             Project: Flink
>          Issue Type: Bug
>          Components: YARN
>            Reporter: Tao Wang
>            Assignee: Tao Wang
>         Attachments: screenshot-1.png
>
>
> I set taskmanager.heap.mb to 5120 and jobmanager.heap.mb to 2048, and run 
> ./yarn-session.sh -n 3, but the YARN only allocates 4GB for this application.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to