This project provides a set of base classes that simplify the art of crafting bullet-proof Spark Structured Streaming applications.
Project description
pyspark-streaming-base
This project provides a set of base classes that simplify the art of crafting bullet-proof Spark Structured Streaming applications.
The Environment
- uv
- Spark 4.0.1. This should match the pyspark version in the pyproject.toml
Java Home
Setup on Mac
brew install openjdk@17
brew install openjdk@21
Here is an example from my local install. I needed to manually symlink since java 23 was taking over the mac
ln -s /opt/homebrew/Cellar/openjdk@21/21.0.8/libexec/openjdk.jdk /Users/scotthaines/Library/Java/JavaVirtualMachines/openjdk@21.0.8
Check that your version exists
/usr/libexec/java_home -V
The following I added to my ~/.zshrc. Spark 4.0.1 supports Java 17 or 21, and Scala 2.13. Use jdk 21.
export JAVA_HOME=$(/usr/libexec/java_home -v 21)
Using
uv: https://docs.astral.sh/uv/getting-started/features/#projects
uv python install 3.13
Sync to match the uv.lock
uv sync
uv build
uv run pytest --cov=pyspark_streaming_base --cov-report term
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyspark_streaming_base-0.1.0.tar.gz.
File metadata
- Download URL: pyspark_streaming_base-0.1.0.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eea283c3e8b28376558cbbb28ba2411d896272ec602d85a14383c150e381ebaf
|
|
| MD5 |
2caadd16e409c52ffedfcaa227bd2000
|
|
| BLAKE2b-256 |
cf9e189a9d281f84a1c0e4a8a7d11aabd3eae13fa338df5a51c5d3d58bf2c1e9
|
File details
Details for the file pyspark_streaming_base-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyspark_streaming_base-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f13b648391b9ce800a6a42b52ed5fcf686bc03ba1bf6e14a129e9837fe472953
|
|
| MD5 |
02d793982ed00c1f937f17bcbfcd445e
|
|
| BLAKE2b-256 |
957aacb92b5b4f2cc78c808459c8cc8e0dd81dadcc33607ed17de0509fce2463
|