Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10392 Remove legacy mode
  3. FLINK-11146

Get rid of legacy codes from ClusterClient

    XMLWordPrintableJSON

Details

    Description

      As StephanEwen mentioned in ML
      https://lists.apache.org/thread.html/cc46fde6f8b31d4e833b01e5814a9547c8a67ea3e08a31ec5d71145e@%3Cdev.flink.apache.org%3E
      , the client needs big refactoring / cleanup. It should use a proper HTTP client library to help with future authentication mechanisms.

      After an investigation I notice that the valid cluster clients are only MiniClusterClient and RestClusterClient. Legacy clients, StandaloneClusterClient and YarnClusterClient, as well as pre-FLIP-6 codes inside ClusterClient, should be removed as part of FLINK-10392. With this removal we arrive a clean stage where we can think how to implement a proper HTTP client more comfortably.

      1. StandaloneClusterClient is now depended on by LegacyStandaloneClusterDescriptor (the removal is tracked by FLINK-10700) and FlinkClient(part of flink-storm which is decided to be removed FLINK-10571). Also relevant tests need to be ported(or directly removed).

      2. The removal of YarnClusterClient should go along with FLINK-11106 Remove legacy flink-yarn component.

      3. Testing classes inheriting from ClusterClient need to be ported(or directly removed).

      4. Get rid of legacy codes inside ClusterClient it self, such as #run(JobGraph, ClassLoader)

      Besides, what is JobClient used for? I cannot find valid usages of it. (Till mentioned it at ML https://lists.apache.org/thread.html/ce99cba4a10b9dc40eb729d39910f315ae41d80ec74f09a356c73938@%3Cdev.flink.apache.org%3E)
      cc mxm till.rohrmann

      Attachments

        Issue Links

          Activity

            People

              tison Zili Chen
              tison Zili Chen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m