Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8699 Enable support for common map join [Spark Branch]
  3. HIVE-8621

Dump small table join data for map-join [Spark Branch]

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      This jira aims to re-use a slightly modified approach of map-reduce distributed cache in spark to dump map-joined small tables as hash tables onto spark DFS cluster.
      This is a sub-task of map-join for spark
      https://issues.apache.org/jira/browse/HIVE-7613

      This can use the baseline patch for map-join
      https://issues.apache.org/jira/browse/HIVE-8616

      The original thought process was to use broadcast variable concept in spark, for the small tables.
      The number of broadcast variables that must be created is m x n where
      'm' is the number of small tables in the (m+1) way join and n is the number of buckets of tables. If unbucketed, n=1

      But it was discovered that objects compressed with kryo serialization on disk, can occupy 20X or more when deserialized in-memory. For bucket join, the spark Driver has to hold all the buckets (for bucketed tables) in-memory (to provide for fault-tolerance against Executor failures) although the executors only need individual buckets in their memory. So the broadcast variable approach may not be the right approach.

      Attachments

        1. HIVE-8621.1-spark.patch
          3 kB
          Jimmy Xiang
        2. HIVE-8621.2-spark.patch
          6 kB
          Jimmy Xiang

        Issue Links

          Activity

            People

              jxiang Jimmy Xiang
              ssatish Suhas Satish
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: