Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-5058

taskManagerMemory attribute set wrong value in FlinkShell

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.3
    • Fix Version/s: 1.2.0, 1.1.4
    • Component/s: Scala Shell
    • Labels:
      None

      Description

      In FlinkShell.scala, someone mistakenly set slots value to taskManagerMemory attribute as follow:

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

      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:

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                397090770 wyp
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 8h
                  8h
                  Remaining:
                  Remaining Estimate - 8h
                  8h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified