flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-5904) jobmanager.heap.mb and taskmanager.heap.mb not work in YARN mode
Date Fri, 03 Mar 2017 15:25:45 GMT

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

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

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

    https://github.com/apache/flink/pull/3414#discussion_r104174086
  
    --- 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 --
    
    I'm wondering whether the `yarnClusterDescriptor` should not have been automatically instantiated
with this value if it gets the configuration as a constructor parameter.


> 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)

Mime
View raw message