Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19693

SET mapreduce.job.reduces automatically converted to spark.sql.shuffle.partitions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • SQL
    • None

    Description

      How to reproduce:

      spark-sql> set spark.sql.shuffle.partitions;
      spark.sql.shuffle.partitions    200
      Time taken: 7.118 seconds, Fetched 1 row(s)
      spark-sql> set mapred.reduce.tasks=10;
      spark.sql.shuffle.partitions    10
      Time taken: 5.968 seconds, Fetched 1 row(s)
      spark-sql> set mapreduce.job.reduces=20;
      set mapreduce.job.reduces       20
      Time taken: 0.233 seconds, Fetched 1 row(s)
      spark-sql> set spark.sql.shuffle.partitions;
      spark.sql.shuffle.partitions    10
      Time taken: 0.099 seconds, Fetched 1 row(s)
      

      The SET mapreduce.job.reduces should automatically converted to spark.sql.shuffle.partitions, it's similar to set mapred.reduce.tasks.

      Attachments

        Activity

          People

            yumwang Yuming Wang
            yumwang Yuming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: