Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-44111 Prepare Apache Spark 4.0.0
  3. SPARK-49678

Support `spark.test.master` in `SparkSubmitArguments`

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    Description

      To allow users to control the default master setting during testing and documentation generation.

      BEFORE (`local[*]`)

      $ bin/pyspark
      Python 3.9.19 (main, Jun 17 2024, 15:39:29)
      [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      WARNING: Using incubator modules: jdk.incubator.vector
      Using Spark's default log4j profile: org/apache/spark/log4j2-pattern-layout-defaults.properties
      Setting default log level to "WARN".
      To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
      24/09/16 13:53:02 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      Welcome to
            ____              __
           / _/_  ___ ____/ /_
          \ \/ _ \/ _ `/ __/  '/
         /__ / ._/_,// //_\   version 4.0.0-SNAPSHOT
            /_/
      Using Python version 3.9.19 (main, Jun 17 2024 15:39:29)
      Spark context Web UI available at http://localhost:4040
      Spark context available as 'sc' (master = local[*], app id = local-1726519982935).
      SparkSession available as 'spark'.
      >>>

       

      AFTER (`local[1]`)

       $ JDK_JAVA_OPTIONS="-Dspark.test.master=local[1]" bin/pyspark
      NOTE: Picked up JDK_JAVA_OPTIONS: -Dspark.test.master=local[1]
      Python 3.9.19 (main, Jun 17 2024, 15:39:29)
      [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      NOTE: Picked up JDK_JAVA_OPTIONS: -Dspark.test.master=local[1]
      NOTE: Picked up JDK_JAVA_OPTIONS: -Dspark.test.master=local[1]
      WARNING: Using incubator modules: jdk.incubator.vector
      Using Spark's default log4j profile: org/apache/spark/log4j2-pattern-layout-defaults.properties
      Setting default log level to "WARN".
      To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
      24/09/16 13:51:03 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      Welcome to
            ____              __
           / _/_  ___ ____/ /_
          \ \/ _ \/ _ `/ __/  '/
         /__ / ._/_,// //_\   version 4.0.0-SNAPSHOT
            /_/
      Using Python version 3.9.19 (main, Jun 17 2024 15:39:29)
      Spark context Web UI available at http://localhost:4040
      Spark context available as 'sc' (master = local[1], app id = local-1726519863363).
      SparkSession available as 'spark'.
      >>>

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dongjoon Dongjoon Hyun Assign to me
            dongjoon Dongjoon Hyun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment