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

flink cli -yn -ys is not effect if (yn * ys)<parallelism ( this parallelism form env.setParallelism(parallelism) ) ;

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.7.1
    • None
    • None
    • None
    • java: jdk1.8.0_151

      flink: flink-1.7.1

      CDH:CDH-5.13.1-1.cdh5.13.1.p0.2

    Description

      Such as the title

      if  (yn * ys)<parallelism  ( this  parallelism form env.setParallelism(parallelism) ) the yn and ys is not effect

      my application is flink streaming read kafka . this kafka topic has 3 partition,and setParallelism(3) in code.when i use cli submiitjobs

      flink-1.7.1/bin/flink run -m yarn-cluster -yn 1 -ys 1 -ynm test -ccom.ishansong.bigdata.Main222 ./flinkDemo-1.0-SNAPSHOT.jar

      the application  apply for 4 cpu cores and 4 containers from yarn web ui

      but if code is not write env.setParallelism(parallelism) or (yn*ys)>parallelism ,the  yn、ys will effect. if code write   env.setParallelism(parallelism) ,the final application resources are yn multiples and ys  multiples. such  as parallelism=10,yn=1 ys=5,the final application resources:cpu cores=11 containers=3

       

      Reproduce for the convenience of bugs,offer codes

      Attachments

        1. Main222.java
          5 kB
          shengjk1
        2. image-2019-01-17-14-25-34-206.png
          49 kB
          shengjk1

        Activity

          People

            Unassigned Unassigned
            shengjk1 shengjk1
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: