Skip to content

Commit 2f3167d

Browse files
committed
chore: update
1 parent 7f32109 commit 2f3167d

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.venv/
2+
__pycache__/
3+
*.pyc
4+
*.pyo
5+
.python-version
6+
README.md
7+
build-and-push.sh
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
JOB_NAME="streaming-satellite"
6+
GITHUB_USERNAME="cukhoaimon"
7+
REGISTRY="ghcr.io/${GITHUB_USERNAME}/spark-job-${JOB_NAME}"
8+
TAG="${1:-latest}"
9+
10+
echo "==> Building ${REGISTRY}:${TAG} (linux/amd64)"
11+
12+
docker build \
13+
--platform linux/amd64 \
14+
-t "${REGISTRY}:${TAG}" \
15+
"$(dirname "$0")"
16+
17+
echo "==> Logging in to ghcr.io"
18+
gh auth token | docker login ghcr.io -u "${GITHUB_USERNAME}" --password-stdin
19+
20+
echo "==> Pushing ${REGISTRY}:${TAG}"
21+
docker push "${REGISTRY}:${TAG}"
22+
echo "==> Done: ${REGISTRY}:${TAG}"

spark-jobs/job-streaming-satellite.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
- ghcr-pull-secret
1414
mainApplicationFile: local:///opt/spark/work-dir/main.py
1515

16-
sparkVersion: "3.5.3"
16+
sparkVersion: "4.0.0"
1717
sparkConfigMap: spark-defaults
1818

1919
sparkConf:
@@ -54,7 +54,7 @@ spec:
5454
value: "latest"
5555
# ── Streaming tuning ───────────────────────────────────────────────────
5656
- name: CHECKPOINT_LOCATION
57-
value: "s3a://warehouse/checkpoints/satellite-telemetry/"
57+
value: "s3a://warehouse/checkpoints/satellite-telemetry/v2/"
5858
- name: TRIGGER_INTERVAL_SECONDS
5959
value: "30"
6060

0 commit comments

Comments
 (0)