Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15683

Make what's done in HIVE-15580 for group by configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • Spark
    • Document the new configuration for 2.2.0.

    Description

      HIVE-15580 changed the way the data is shuffled for group by: instead of using Spark's groupByKey to shuffle data, Hive on Spark now uses repartitionAndSortWithinPartitions(), which generates (key, value) pairs instead of original (key, value iterator). This might have some performance implications, but it's needed to get rid of unbound memory usage by groupByKey.

      Here we'd like to compare group by performance with or w/o HIVE-15580. If the impact is significant, we can provide a configuration that allows user to switch back to the original way of shuffling.

      This work should be ideally done after HIVE-15682 as the optimization there should help the performance here as well.

      Attachments

        1. HIVE-15683.1.patch
          11 kB
          Xuefu Zhang
        2. HIVE-15683.2.patch
          12 kB
          Xuefu Zhang
        3. HIVE-15683.patch
          10 kB
          Xuefu Zhang

        Issue Links

          Activity

            People

              xuefuz Xuefu Zhang
              xuefuz Xuefu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: