Skip to content

Commit 34f1ae3

Browse files
committed
wip
1 parent d2e31a3 commit 34f1ae3

4 files changed

Lines changed: 23 additions & 8 deletions

File tree

demos/spark-k8s-anomaly-detection-taxi-data/create-spark-anomaly-detection-job.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,21 @@ spec:
99
initContainers:
1010
- name: wait-for-testdata
1111
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
12-
command: ["bash", "-c", "echo 'Waiting for job load-ny-taxi-data to finish' && kubectl wait --for=condition=complete --timeout=30m job/load-ny-taxi-data"]
12+
command:
13+
[
14+
"bash",
15+
"-c",
16+
"echo 'Waiting for job load-ny-taxi-data to finish' && kubectl wait --for=condition=complete --timeout=30m job/load-ny-taxi-data",
17+
]
1318
containers:
1419
- name: create-spark-anomaly-detection-job
1520
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
16-
command: ["bash", "-c", "echo 'Submitting Spark job' && kubectl apply -f /tmp/manifest/spark-ad-job.yaml"]
21+
command:
22+
[
23+
"bash",
24+
"-c",
25+
"echo 'Submitting Spark job' && kubectl apply -f /tmp/manifest/spark-ad-job.yaml",
26+
]
1727
volumeMounts:
1828
- name: manifest
1929
mountPath: /tmp/manifest
@@ -89,7 +99,7 @@ data:
8999
spark.sql.extensions: org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions
90100
spark.sql.catalog.prediction: org.apache.iceberg.spark.SparkCatalog
91101
spark.sql.catalog.prediction.type: hive
92-
spark.sql.catalog.prediction.uri: thrift://hive-iceberg:9083
102+
spark.sql.catalog.prediction.uri: thrift://hive-iceberg-metastore:9083
93103
# AFAIK This can be removed in 24.3
94104
#spark.driver.userClassPathFirst: "false"
95105
#spark.executor.userClassPathFirst: "false"

demos/spark-k8s-anomaly-detection-taxi-data/setup-superset.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ spec:
99
containers:
1010
- name: setup-superset
1111
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
12-
command: ["bash", "-c", "curl -o superset-assets.zip https://raw.githubusercontent.com/stackabletech/demos/main/demos/spark-k8s-anomaly-detection-taxi-data/superset-assets.zip && python -u /tmp/script/script.py"]
12+
command:
13+
[
14+
"bash",
15+
"-c",
16+
"curl -o superset-assets.zip https://raw.githubusercontent.com/stackabletech/demos/main/demos/spark-k8s-anomaly-detection-taxi-data/superset-assets.zip && python -u /tmp/script/script.py",
17+
]
1318
volumeMounts:
1419
- name: script
1520
mountPath: /tmp/script
@@ -39,7 +44,7 @@ data:
3944
import logging
4045
import requests
4146
42-
base_url = "http://superset-node-default:8088" # For local testing / developing replace it, afterwards change back to http://superset-node-default:8088
47+
base_url = "http://superset-node-default-headless:8088" # For local testing / developing replace it, afterwards change back to http://superset-node-default-headless:8088
4348
superset_username = open("/superset-credentials/adminUser.username").read()
4449
superset_password = open("/superset-credentials/adminUser.password").read()
4550
trino_username = "admin"
386 Bytes
Binary file not shown.

stacks/trino-superset-s3/superset.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: superset
66
spec:
77
image:
8-
productVersion: 4.1.2
8+
productVersion: 4.0.2
99
clusterConfig:
1010
credentialsSecret: superset-credentials
1111
mapboxSecret: superset-mapbox-api-key
@@ -26,8 +26,8 @@ stringData:
2626
adminUser.firstname: Superset
2727
adminUser.lastname: Admin
2828
adminUser.email: admin@superset.com
29-
adminUser.password: {{ supersetAdminPassword }}
30-
connections.secretKey: {{ supersetSecretKey }}
29+
adminUser.password: "{{ supersetAdminPassword }}"
30+
connections.secretKey: "{{ supersetSecretKey }}"
3131
connections.sqlalchemyDatabaseUri: postgresql://superset:superset@postgresql-superset/superset
3232
---
3333
apiVersion: v1

0 commit comments

Comments
 (0)