目录
Ruifeng Zheng

[SPARK-53614][PYTHON][TESTS][FOLLOW-UP] Fix the maxBytes config in tests

What changes were proposed in this pull request?

Fix the maxBytes config in tests

Why are the changes needed?

the testing configs (1000, 4096) were duplicated, IntMax should be tested instead

Does this PR introduce any user-facing change?

no

How was this patch tested?

ci

Was this patch authored or co-authored using generative AI tooling?

no

Closes #53249 from zhengruifeng/test_grouped_conf.

Authored-by: Ruifeng Zheng ruifengz@apache.org Signed-off-by: Dongjoon Hyun dongjoon@apache.org

7天前46261次提交
#x27; | grep -v 'org/apache/spark' | grep -v 'org/sparkproject' | grep -v 'META-INF' javax/annotation/CheckForNull.class javax/annotation/CheckForSigned.class ... ``` after (this PR) ``` $ jar tf jars/connect-repl/spark-connect-client-jvm_2.13-4.2.0-SNAPSHOT.jar | grep '.class
#x27; | grep -v 'org/apache/spark' | grep -v 'org/sparkproject' | grep -v 'META-INF' <no-output> ``` ### Does this PR introduce _any_ user-facing change? Reduce potential class conflict issues for users who use `spark-connect-jvm-client`. ### How was this patch tested? Manually checked, see the above section. Also, manually tested the Connect Server, and Connect JVM client via BeeLine. ``` $ dev/make-distribution.sh --tgz --name guava -Pyarn -Pkubernetes -Phadoop-3 -Phive -Phive-thriftserver $ cd dist $ SPARK_NO_DAEMONIZE=1 sbin/start-connect-server.sh ``` ``` $ SPARK_CONNECT_BEELINE=1 bin/beeline -u jdbc:sc://localhost:15002 -e "select 'Hello, Spark Connect!', version() as server_version;" WARNING: Using incubator modules: jdk.incubator.vector Connecting to jdbc:sc://localhost:15002 Connected to: Apache Spark Connect Server (version 4.2.0-SNAPSHOT) Driver: Apache Spark Connect JDBC Driver (version 4.2.0-SNAPSHOT) Error: Requested transaction isolation level REPEATABLE_READ is not supported (state=,code=0) Using Spark's default log4j profile: org/apache/spark/log4j2-defaults.properties 25/11/05 13:30:03 WARN Utils: Your hostname, H27212-MAC-01.local, resolves to a loopback address: 127.0.0.1; using 10.242.159.140 instead (on interface en0) 25/11/05 13:30:03 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address +------------------------+-------------------------------------------------+ | Hello, Spark Connect! | server_version | +------------------------+-------------------------------------------------+ | Hello, Spark Connect! | 4.2.0 0ea7f5599c5dcc169b0724caa48d5530c39dbefb | +------------------------+-------------------------------------------------+ 1 row selected (0.09 seconds) Beeline version 2.3.10 by Apache Hive Closing: 0: jdbc:sc://localhost:15002 ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #52873 from pan3793/guava-govern. Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: yangjie01 <yangjie01@baidu.com> " href="/Supercomputing/spark/commits/a8d128c7ac">[SPARK-54190][BUILD] Guava dependency governance
28天前
  • bin[SPARK-53149][CORE] Fix testing whether BeeLine process run in background2个月前
  • binder[SPARK-51232][PYTHON][DOCS] Remove PySpark 3.3 and older logic from `binder/postBuild`10个月前
  • build[SPARK-53668][BUILD] Add `--enable-native-access=ALL-UNNAMED` to `build/sbt`2个月前
  • common[SPARK-54395][SHUFFLE] RemoteBlockPushResolver class repeatedly initializes ObjectMapper13天前
  • conf[SPARK-50773][CORE] Disable structured logging by default11个月前
  • connector
  • quot;shift_start").as("avro")) // Deserialize Avro binary back to TIME (with precision metadata) val schema = """ { "type": "long", "logicalType": "time-micros", "spark.sql.catalyst.type": "time(3)" } """ val timeDF = avroDF.select(from_avro(
    quot;avro", schema).as("shift_start")) ``` 4. Use TIME in Avro-based streaming ```scala // Kafka with Avro serialization df.selectExpr("to_avro(struct(shift_start)) as value") .write .format("kafka") .save() ``` ### How was this patch tested? Added tests in `AvroSuite` and `AvroFunctionsSuite.scala` Also manually tested using `spark-shell --packages org.apache.spark:spark-avro_2.13:4.0.0` ```scala val df = spark.sql("SELECT TIME'14:30:45.123456' as shift_start") import org.apache.spark.sql.avro.functions.{to_avro, from_avro} val avroDF = df.select(to_avro(
    quot;shift_start").as("avro")) // Deserialize Avro binary back to TIME (with precision metadata) val schema = """ { "type": "long", "logicalType": "time-micros", "spark.sql.catalyst.type": "time(3)" } """ val timeDF = avroDF.select(from_avro(
    quot;avro", schema).as("shift_start")) timeDF.show ``` ``` +---------------+ | shift_start| +---------------+ |14:30:45.123456| +---------------+ ``` ```scala timeDF.printSchema ``` ``` root |-- shift_start: time(3) (nullable = true) ``` ### Was this patch authored or co-authored using generative AI tooling? Yes. Generated-by: Claude 3.5 Sonnet AI assistance was used for: - Code pattern analysis and design discussions - Implementation guidance following Spark conventions - Test case generation and organization - Documentation and examples Closes #53189 from vinodkc/br_time_avro_read_write. Authored-by: vinodkc <vinod.kc.in@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> " href="/Supercomputing/spark/commits/99f3af8d57">[SPARK-54473][SQL] Add Avro read and write support for TIME type
    10天前
  • core[SPARK-54223][PYTHON] Add task context and data metrics to Python runner logs8天前
  • data[SPARK-43612][PYTHON][CONNECT][FOLLOW-UP] Copy dependent data files to data directory2年前
  • dev[SPARK-54529][BUILD] Upgrade `commons-codec` to 1.20.09天前
  • docs[SPARK-51765][DOCS] Document `SQL Scripting` Syntax13天前
  • examples[SPARK-53731][PYTHON] Update the type hints of iterator APIs1个月前
  • graphx[SPARK-54133][BUILD] Setting version to 4.2.0-SNAPSHOT1个月前
  • hadoop-cloud[SPARK-54133][BUILD] Setting version to 4.2.0-SNAPSHOT1个月前
  • launcher[SPARK-54133][BUILD] Setting version to 4.2.0-SNAPSHOT1个月前
  • licenses-binary
  • #x27; | grep -v 'org/apache/spark' | grep -v 'org/sparkproject' | grep -v 'META-INF' javax/annotation/CheckForNull.class javax/annotation/CheckForSigned.class ... ``` after (this PR) ``` $ jar tf jars/connect-repl/spark-connect-client-jvm_2.13-4.2.0-SNAPSHOT.jar | grep '.class
    #x27; | grep -v 'org/apache/spark' | grep -v 'org/sparkproject' | grep -v 'META-INF' <no-output> ``` ### Does this PR introduce _any_ user-facing change? Reduce potential class conflict issues for users who use `spark-connect-jvm-client`. ### How was this patch tested? Manually checked, see the above section. Also, manually tested the Connect Server, and Connect JVM client via BeeLine. ``` $ dev/make-distribution.sh --tgz --name guava -Pyarn -Pkubernetes -Phadoop-3 -Phive -Phive-thriftserver $ cd dist $ SPARK_NO_DAEMONIZE=1 sbin/start-connect-server.sh ``` ``` $ SPARK_CONNECT_BEELINE=1 bin/beeline -u jdbc:sc://localhost:15002 -e "select 'Hello, Spark Connect!', version() as server_version;" WARNING: Using incubator modules: jdk.incubator.vector Connecting to jdbc:sc://localhost:15002 Connected to: Apache Spark Connect Server (version 4.2.0-SNAPSHOT) Driver: Apache Spark Connect JDBC Driver (version 4.2.0-SNAPSHOT) Error: Requested transaction isolation level REPEATABLE_READ is not supported (state=,code=0) Using Spark's default log4j profile: org/apache/spark/log4j2-defaults.properties 25/11/05 13:30:03 WARN Utils: Your hostname, H27212-MAC-01.local, resolves to a loopback address: 127.0.0.1; using 10.242.159.140 instead (on interface en0) 25/11/05 13:30:03 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address +------------------------+-------------------------------------------------+ | Hello, Spark Connect! | server_version | +------------------------+-------------------------------------------------+ | Hello, Spark Connect! | 4.2.0 0ea7f5599c5dcc169b0724caa48d5530c39dbefb | +------------------------+-------------------------------------------------+ 1 row selected (0.09 seconds) Beeline version 2.3.10 by Apache Hive Closing: 0: jdbc:sc://localhost:15002 ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #52873 from pan3793/guava-govern. Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: yangjie01 <yangjie01@baidu.com> " href="/Supercomputing/spark/commits/a8d128c7ac">[SPARK-54190][BUILD] Guava dependency governance
    28天前
  • licenses[SPARK-49234][BUILD] Upgrade `xz` to `1.10`1年前
  • mllib-local[SPARK-54133][BUILD] Setting version to 4.2.0-SNAPSHOT1个月前
  • mllib[SPARK-54133][BUILD] Setting version to 4.2.0-SNAPSHOT1个月前
  • project[SPARK-54323][PYTHON] Change the way to access logs to TVF instead of system view22天前
  • python[SPARK-53614][PYTHON][TESTS][FOLLOW-UP] Fix the maxBytes config in tests7天前
  • repl[SPARK-54363][REPL][TESTS] Access to buffer in SparkShellSuite should be synchronized between threads12天前
  • resource-managers[SPARK-54422][K8S] Increase `spark.kubernetes.allocation.batch.size` to 2015天前
  • sbin[SPARK-51146][INFRA][FOLLOW-UP] Explicitly disable Spark Connect in server side scripts9个月前
  • sql[SPARK-54540][CONNECT] Couples of minor fix for Connect JDBC driver7天前
  • streaming[SPARK-54469][DSTREAM][TESTS] Fix `StreamingContextSuite.stop slow receiver gracefully` test to clean up `SprakContext`12天前
  • tools[SPARK-54133][BUILD] Setting version to 4.2.0-SNAPSHOT1个月前
  • ui-test[SPARK-54273][UI][TESTS] Upgrade jest to 30.0.025天前
  • .asf.yaml[MINOR][INFRA] Update `.asf.yaml` with new `README.md` link6个月前
  • .gitattributes[SPARK-30653][INFRA][SQL] EOL character enforcement for java/scala/xml/py/R files5年前
  • .gitignore[SPARK-52936][INFRA][TESTS] Benchmark result update automation4个月前
  • .nojekyll[MINOR][INFRA] Disable 'pages build and deployment' action1年前
  • CONTRIBUTING.md[MINOR][DOCS] Tighten up some key links to the project and download pages to use HTTPS6年前
  • LICENSE[SPARK-53088][BUILD] Remove `scala-collection-compat` dependency4个月前
  • LICENSE-binary
  • #x27; | grep -v 'org/apache/spark' | grep -v 'org/sparkproject' | grep -v 'META-INF' javax/annotation/CheckForNull.class javax/annotation/CheckForSigned.class ... ``` after (this PR) ``` $ jar tf jars/connect-repl/spark-connect-client-jvm_2.13-4.2.0-SNAPSHOT.jar | grep '.class
    #x27; | grep -v 'org/apache/spark' | grep -v 'org/sparkproject' | grep -v 'META-INF' <no-output> ``` ### Does this PR introduce _any_ user-facing change? Reduce potential class conflict issues for users who use `spark-connect-jvm-client`. ### How was this patch tested? Manually checked, see the above section. Also, manually tested the Connect Server, and Connect JVM client via BeeLine. ``` $ dev/make-distribution.sh --tgz --name guava -Pyarn -Pkubernetes -Phadoop-3 -Phive -Phive-thriftserver $ cd dist $ SPARK_NO_DAEMONIZE=1 sbin/start-connect-server.sh ``` ``` $ SPARK_CONNECT_BEELINE=1 bin/beeline -u jdbc:sc://localhost:15002 -e "select 'Hello, Spark Connect!', version() as server_version;" WARNING: Using incubator modules: jdk.incubator.vector Connecting to jdbc:sc://localhost:15002 Connected to: Apache Spark Connect Server (version 4.2.0-SNAPSHOT) Driver: Apache Spark Connect JDBC Driver (version 4.2.0-SNAPSHOT) Error: Requested transaction isolation level REPEATABLE_READ is not supported (state=,code=0) Using Spark's default log4j profile: org/apache/spark/log4j2-defaults.properties 25/11/05 13:30:03 WARN Utils: Your hostname, H27212-MAC-01.local, resolves to a loopback address: 127.0.0.1; using 10.242.159.140 instead (on interface en0) 25/11/05 13:30:03 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address +------------------------+-------------------------------------------------+ | Hello, Spark Connect! | server_version | +------------------------+-------------------------------------------------+ | Hello, Spark Connect! | 4.2.0 0ea7f5599c5dcc169b0724caa48d5530c39dbefb | +------------------------+-------------------------------------------------+ 1 row selected (0.09 seconds) Beeline version 2.3.10 by Apache Hive Closing: 0: jdbc:sc://localhost:15002 ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #52873 from pan3793/guava-govern. Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: yangjie01 <yangjie01@baidu.com> " href="/Supercomputing/spark/commits/a8d128c7ac">[SPARK-54190][BUILD] Guava dependency governance
    28天前
  • NOTICE[SPARK-29674][CORE] Update dropwizard metrics to 4.1.x for JDK 9+6年前
  • NOTICE-binary[SPARK-54295][INFRA] Remove redundant ASFLv2 full-text in `NOTICE-binary`23天前
  • README.md[SPARK-54475][PYTHON] Add master-server, branch-4.0-client, Python 3.1110天前
  • pom.xml[SPARK-54529][BUILD] Upgrade `commons-codec` to 1.20.09天前
  • scalastyle-config.xml[SPARK-54260][CORE][K8S] Unify K8s cluster checks to use the single regex via `SparkMasterRegex.isK8s` methods25天前
  • 目录README.md

    Apache Spark

    Spark is a unified analytics engine for large-scale data processing. It provides high-level APIs in Scala, Java, Python, and R (Deprecated), and an optimized engine that supports general computation graphs for data analysis. It also supports a rich set of higher-level tools including Spark SQL for SQL and DataFrames, pandas API on Spark for pandas workloads, MLlib for machine learning, GraphX for graph processing, and Structured Streaming for stream processing.

    GitHub Actions Build PySpark Coverage PyPI Downloads

    Online Documentation

    You can find the latest Spark documentation, including a programming guide, on the project web page. This README file only contains basic setup instructions.

    Build Pipeline Status

    Branch Status
    master GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    branch-4.1 GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    branch-4.0 GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    GitHub Actions Build
    branch-3.5 GitHub Actions Build
    GitHub Actions Build

    Building Spark

    Spark is built using Apache Maven. To build Spark and its example programs, run:

    ./build/mvn -DskipTests clean package

    (You do not need to do this if you downloaded a pre-built package.)

    More detailed documentation is available from the project site, at “Building Spark”.

    For general development tips, including info on developing Spark using an IDE, see “Useful Developer Tools”.

    Interactive Scala Shell

    The easiest way to start using Spark is through the Scala shell:

    ./bin/spark-shell

    Try the following command, which should return 1,000,000,000:

    scala> spark.range(1000 * 1000 * 1000).count()

    Interactive Python Shell

    Alternatively, if you prefer Python, you can use the Python shell:

    ./bin/pyspark

    And run the following command, which should also return 1,000,000,000:

    >>> spark.range(1000 * 1000 * 1000).count()

    Example Programs

    Spark also comes with several sample programs in the examples directory. To run one of them, use ./bin/run-example <class> [params]. For example:

    ./bin/run-example SparkPi

    will run the Pi example locally.

    You can set the MASTER environment variable when running examples to submit examples to a cluster. This can be spark:// URL, “yarn” to run on YARN, and “local” to run locally with one thread, or “local[N]” to run locally with N threads. You can also use an abbreviated class name if the class is in the examples package. For instance:

    MASTER=spark://host:7077 ./bin/run-example SparkPi

    Many of the example programs print usage help if no params are given.

    Running Tests

    Testing first requires building Spark. Once Spark is built, tests can be run using:

    ./dev/run-tests

    Please see the guidance on how to run tests for a module, or individual tests.

    There is also a Kubernetes integration test, see resource-managers/kubernetes/integration-tests/README.md

    A Note About Hadoop Versions

    Spark uses the Hadoop core library to talk to HDFS and other Hadoop-supported storage systems. Because the protocols have changed in different versions of Hadoop, you must build Spark against the same version that your cluster runs.

    Please refer to the build documentation at “Specifying the Hadoop Version and Enabling YARN” for detailed guidance on building for a particular distribution of Hadoop, including building for particular Hive and Hive Thriftserver distributions.

    Configuration

    Please refer to the Configuration Guide in the online documentation for an overview on how to configure Spark.

    Contributing

    Please review the Contribution to Spark guide for information on how to get started contributing to the project.

    关于

    用于大规模数据处理和分析的统一分析引擎。

    1.9 GB
    邀请码