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

Size of aggregation buffer which uses non-primitive type is not estimated correctly

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: Query Processor
    • Labels:
      None

      Description

      Currently, hive assumes an aggregation buffer which holds a map is occupying just 256 byte (fixed). If it's bigger than that in real, OutOfMemoryError can be thrown (especially for >1k buffer).

      workaround : set hive.map.aggr.hash.percentmemory=<smaller value than default(0.5)>

        Attachments

        1. HIVE-4068.D8859.5.patch
          36 kB
          Phabricator
        2. HIVE-4068.D8859.4.patch
          38 kB
          Phabricator
        3. HIVE-4068.D8859.3.patch
          7 kB
          Phabricator
        4. HIVE-4068.D8859.2.patch
          5 kB
          Phabricator
        5. HIVE-4068.D8859.1.patch
          3 kB
          Phabricator

          Activity

            People

            • Assignee:
              navis Navis Ryu
              Reporter:
              navis Navis Ryu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: