Run Flink with parallelism more than 1










0















may be i'm just missing smth, but i just have no more ideas where to look.



i read messages from 2 sources, make a join based on a common key and sink
it all to kafka.



val env = StreamExecutionEnvironment.getExecutionEnvironment 
env.setParallelism(3)
...
source1
.keyBy(_.searchId)
.connect(source2.keyBy(_.searchId))
.process(new SearchResultsJoinFunction)
.addSink(KafkaSink.sink)


so it perfectly works when i launch it locally and it also works on cluster with Parallelism set to 1, but with 3 not any more.



When i deploy it to 1 job manager and 3 taskmanagers and get every Task in "RUNNING" state, after 2
minutes (when nothing is comming to sink) one of the taskmanagers gets the following log:
https://gist.github.com/zavalit/1b1bf6621bed2a3848a05c1ef84c689c#file-gistfile1-txt-L108



and the whole thing just shuts down.



i'll appreciate any hint.
tnx, in an advance.










share|improve this question


























    0















    may be i'm just missing smth, but i just have no more ideas where to look.



    i read messages from 2 sources, make a join based on a common key and sink
    it all to kafka.



    val env = StreamExecutionEnvironment.getExecutionEnvironment 
    env.setParallelism(3)
    ...
    source1
    .keyBy(_.searchId)
    .connect(source2.keyBy(_.searchId))
    .process(new SearchResultsJoinFunction)
    .addSink(KafkaSink.sink)


    so it perfectly works when i launch it locally and it also works on cluster with Parallelism set to 1, but with 3 not any more.



    When i deploy it to 1 job manager and 3 taskmanagers and get every Task in "RUNNING" state, after 2
    minutes (when nothing is comming to sink) one of the taskmanagers gets the following log:
    https://gist.github.com/zavalit/1b1bf6621bed2a3848a05c1ef84c689c#file-gistfile1-txt-L108



    and the whole thing just shuts down.



    i'll appreciate any hint.
    tnx, in an advance.










    share|improve this question
























      0












      0








      0








      may be i'm just missing smth, but i just have no more ideas where to look.



      i read messages from 2 sources, make a join based on a common key and sink
      it all to kafka.



      val env = StreamExecutionEnvironment.getExecutionEnvironment 
      env.setParallelism(3)
      ...
      source1
      .keyBy(_.searchId)
      .connect(source2.keyBy(_.searchId))
      .process(new SearchResultsJoinFunction)
      .addSink(KafkaSink.sink)


      so it perfectly works when i launch it locally and it also works on cluster with Parallelism set to 1, but with 3 not any more.



      When i deploy it to 1 job manager and 3 taskmanagers and get every Task in "RUNNING" state, after 2
      minutes (when nothing is comming to sink) one of the taskmanagers gets the following log:
      https://gist.github.com/zavalit/1b1bf6621bed2a3848a05c1ef84c689c#file-gistfile1-txt-L108



      and the whole thing just shuts down.



      i'll appreciate any hint.
      tnx, in an advance.










      share|improve this question














      may be i'm just missing smth, but i just have no more ideas where to look.



      i read messages from 2 sources, make a join based on a common key and sink
      it all to kafka.



      val env = StreamExecutionEnvironment.getExecutionEnvironment 
      env.setParallelism(3)
      ...
      source1
      .keyBy(_.searchId)
      .connect(source2.keyBy(_.searchId))
      .process(new SearchResultsJoinFunction)
      .addSink(KafkaSink.sink)


      so it perfectly works when i launch it locally and it also works on cluster with Parallelism set to 1, but with 3 not any more.



      When i deploy it to 1 job manager and 3 taskmanagers and get every Task in "RUNNING" state, after 2
      minutes (when nothing is comming to sink) one of the taskmanagers gets the following log:
      https://gist.github.com/zavalit/1b1bf6621bed2a3848a05c1ef84c689c#file-gistfile1-txt-L108



      and the whole thing just shuts down.



      i'll appreciate any hint.
      tnx, in an advance.







      parallel-processing apache-flink






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 14:14









      zavalitzavalit

      1679




      1679






















          1 Answer
          1






          active

          oldest

          votes


















          1














          The problem appears to be that this task manager -- flink-taskmanager-12-2qvcd (10.81.53.209) -- is unable to talk to at least one of the other task managers, namely flink-taskmanager-12-57jzd (10.81.40.124:46240). This is why the job never really starts to run.



          I would check in the logs for this other task manager to see what it says, and I would also review your network configuration. Perhaps a firewall is getting in the way?






          share|improve this answer























          • oh, man, you are completely right.! is there some akka cluster behind, where every node needs to now about every other node around him?

            – zavalit
            Nov 14 '18 at 10:30










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282967%2frun-flink-with-parallelism-more-than-1%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          The problem appears to be that this task manager -- flink-taskmanager-12-2qvcd (10.81.53.209) -- is unable to talk to at least one of the other task managers, namely flink-taskmanager-12-57jzd (10.81.40.124:46240). This is why the job never really starts to run.



          I would check in the logs for this other task manager to see what it says, and I would also review your network configuration. Perhaps a firewall is getting in the way?






          share|improve this answer























          • oh, man, you are completely right.! is there some akka cluster behind, where every node needs to now about every other node around him?

            – zavalit
            Nov 14 '18 at 10:30















          1














          The problem appears to be that this task manager -- flink-taskmanager-12-2qvcd (10.81.53.209) -- is unable to talk to at least one of the other task managers, namely flink-taskmanager-12-57jzd (10.81.40.124:46240). This is why the job never really starts to run.



          I would check in the logs for this other task manager to see what it says, and I would also review your network configuration. Perhaps a firewall is getting in the way?






          share|improve this answer























          • oh, man, you are completely right.! is there some akka cluster behind, where every node needs to now about every other node around him?

            – zavalit
            Nov 14 '18 at 10:30













          1












          1








          1







          The problem appears to be that this task manager -- flink-taskmanager-12-2qvcd (10.81.53.209) -- is unable to talk to at least one of the other task managers, namely flink-taskmanager-12-57jzd (10.81.40.124:46240). This is why the job never really starts to run.



          I would check in the logs for this other task manager to see what it says, and I would also review your network configuration. Perhaps a firewall is getting in the way?






          share|improve this answer













          The problem appears to be that this task manager -- flink-taskmanager-12-2qvcd (10.81.53.209) -- is unable to talk to at least one of the other task managers, namely flink-taskmanager-12-57jzd (10.81.40.124:46240). This is why the job never really starts to run.



          I would check in the logs for this other task manager to see what it says, and I would also review your network configuration. Perhaps a firewall is getting in the way?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 13 '18 at 21:34









          David AndersonDavid Anderson

          5,13121121




          5,13121121












          • oh, man, you are completely right.! is there some akka cluster behind, where every node needs to now about every other node around him?

            – zavalit
            Nov 14 '18 at 10:30

















          • oh, man, you are completely right.! is there some akka cluster behind, where every node needs to now about every other node around him?

            – zavalit
            Nov 14 '18 at 10:30
















          oh, man, you are completely right.! is there some akka cluster behind, where every node needs to now about every other node around him?

          – zavalit
          Nov 14 '18 at 10:30





          oh, man, you are completely right.! is there some akka cluster behind, where every node needs to now about every other node around him?

          – zavalit
          Nov 14 '18 at 10:30

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282967%2frun-flink-with-parallelism-more-than-1%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Top Tejano songwriter Luis Silva dead of heart attack at 64

          政党

          天津地下鉄3号線