Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7647

CombineGlobally translation is risky and not very performant.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: runner-spark
    • Labels:
      None

      Description

      In combine globally:

      Iterable<WindowedValue<OutputT>> output =
                    sparkCombineFn.extractOutput(maybeAccumulated.get());
                outRdd =
                    context
                        .getSparkContext()
                        .parallelize(CoderHelpers.toByteArrays(output, wvoCoder))
                        .map(CoderHelpers.fromByteFunction(wvoCoder));
      

      => risk of OOM in the list, get data to a single worker (the driver)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              echauchot Etienne Chauchot
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: