Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7292 Hive on Spark
  3. HIVE-8840

Print prettier Spark work graph after HIVE-8793 [Spark Branch]

    XMLWordPrintableJSON

Details

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

    Description

      Because of HIVE-8793, the work graph for Spark is possibly modified by SplitSparkWorkResolver. Original:

          Spark
            Edges:
              Reducer 2 <- Map 1 (SORT, 1)
              Reducer 3 <- Reducer 2 (GROUP, 1)
               Reducer 4 <- Reducer 2 (GROUP, 1)
      

      New graph

          Spark
            Edges:
              Reducer 3 <- Reducer 5 (GROUP, 1)
              Reducer 4 <- Reducer 6 (GROUP, 1)
              Reducer 5 <- Map 1 (SORT, 1)
              Reducer 6 <- Map 1 (SORT, 1)
      

      where Reducer2 was splitted into Reducer5 and Reducer6.

      Two types of ordering can be considered:
      1. Topological order

          Spark
            Edges:
              Reducer 5 <- Map 1 (SORT, 1)
              Reducer 6 <- Map 1 (SORT, 1)
              Reducer 3 <- Reducer 5 (GROUP, 1)
              Reducer 4 <- Reducer 6 (GROUP, 1)
      

      2. DFS

          Spark
            Edges:
              Reducer 5 <- Map 1 (SORT, 1)
              Reducer 3 <- Reducer 5 (GROUP, 1)
              Reducer 6 <- Map 1 (SORT, 1)
              Reducer 4 <- Reducer 6 (GROUP, 1)
      

      Both seems better, though topolical seems more suitable for a graph. Please feel free to create a patch on trunk if needed.

      Attachments

        1. HIVE-8840.1-spark.patch
          84 kB
          Jimmy Xiang
        2. HIVE-8840.2-spark.patch
          84 kB
          Jimmy Xiang

        Issue Links

          Activity

            People

              jxiang Jimmy Xiang
              xuefuz Xuefu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: