You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click "Use this template" to get a copy in your GitHub account.
In your shell ($ prompt) terminal (Windows users: inside WSL), go to your Repos folder, clone your new repository URL, and change directory into it:
cd~/Repos
git clone https://github.com/YOUR_ACCOUNT/pro-analytics-apache-starter
cd pro-analytics-apache-starter
3. Create Python Virtual Environment
Run the following commands in your shell ($ prompt) terminal. Windows users use WSL.
git pull origin main
uv python pin 3.12
uv venv
source .venv/bin/activate
uv sync --extra dev --extra docs --upgrade
uv run pre-commit install
4. Run Example
uv run python src/analytics_project/test-pyspark.py
5. After Modifications
Change your commit message to explain what was done, e.g. "add new .py file".
git add .
git commit -m "your change in quotes"
git push -u origin main
---
## Troubleshooting### JDK Versions
If you have multiple JDK versions installed (either 17 or 21 should work), you can selectwhich one is active using:
```shellsudo update-alternatives --config java
Spark Error (/opt/spark)
If you see:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/spark/./bin/spark-submit'
FAIL: Exception during test. See logs above.
# Check what's setecho$SPARK_HOME# Probably shows /opt/spark# Temporarily unset itunset SPARK_HOME
# Test again
uv run python src/analytics_project/test-pyspark.py