You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (JIRA)" <ji...@apache.org> on 2016/11/17 22:50:58 UTC
[jira] [Closed] (FLINK-5058) taskManagerMemory attribute set wrong
value in FlinkShell
[ https://issues.apache.org/jira/browse/FLINK-5058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabian Hueske closed FLINK-5058.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.1.4
1.2.0
Thanks for the fix!
Fixed for 1.1.4 with 68585d145178beb103ae95f0a80580e8786ee176
Fixed for 1.2.0 with a67d3f80c9782cfc8f70586b086a86ba897e6dbc
> taskManagerMemory attribute set wrong value in FlinkShell
> ---------------------------------------------------------
>
> Key: FLINK-5058
> URL: https://issues.apache.org/jira/browse/FLINK-5058
> Project: Flink
> Issue Type: Bug
> Components: Scala Shell
> Affects Versions: 1.1.3
> Reporter: yangping wu
> Fix For: 1.2.0, 1.1.4
>
> Original Estimate: 8h
> Remaining Estimate: 8h
>
> In FlinkShell.scala, someone mistakenly set {{slots}} value to {{taskManagerMemory}} attribute as follow:
> {code}
> // set configuration from user input
> yarnConfig.jobManagerMemory.foreach((jmMem) => args ++= Seq("-yjm", jmMem.toString))
> yarnConfig.slots.foreach((tmMem) => args ++= Seq("-ytm", tmMem.toString))
> yarnConfig.name.foreach((name) => args ++= Seq("-ynm", name.toString))
> yarnConfig.queue.foreach((queue) => args ++= Seq("-yqu", queue.toString))
> yarnConfig.slots.foreach((slots) => args ++= Seq("-ys", slots.toString))
> {code}
> Note on the third line: {{yarnConfig.slots.foreach((tmMem) => args ++= Seq("-ytm", tmMem.toString))}} , we set {{slots}} value to {{-ytm}} attribute, the right code should be:
> {code}
> // set configuration from user input
> yarnConfig.jobManagerMemory.foreach((jmMem) => args ++= Seq("-yjm", jmMem.toString))
> yarnConfig.taskManagerMemory.foreach((tmMem) => args ++= Seq("-ytm", tmMem.toString))
> yarnConfig.name.foreach((name) => args ++= Seq("-ynm", name.toString))
> yarnConfig.queue.foreach((queue) => args ++= Seq("-yqu", queue.toString))
> yarnConfig.slots.foreach((slots) => args ++= Seq("-ys", slots.toString))
> {code}
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)