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

StreamExecutionEnvironment and ExecutionEnvironment in Yarn mode

    XMLWordPrintableJSON

Details

    Description

      Expect to have such a mode of submission. Build the task directly in the Environment, and then submit the task in yarn mode. Just like RemoteStreamEnvironment, as long as you specify the parameters of the yarn cluster (host, port) or yarn configuration directory and HADOOP_USER_NAME, you can use the topology built by Env to submit the task .

      This submission method is best to minimize the transmission of resources required by yarn to start flink-jobmanager and taskmanagerrunner to ensure that flink can deploy tasks on the yarn cluster as quickly as possible.

      The simple demo as shown in  the external link Simple outline of the Yarn-Env API(Per-Job Mode) .the parameter named 'env' containes all the operators about job ,like sources,maps,etc..

       

      Attachments

        1. demo.jpeg
          180 kB
          RocMarshal

        Issue Links

          Activity

            People

              Unassigned Unassigned
              RocMarshal RocMarshal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: