一键导入
setup-and-run-example
Set up minikube, install Spark Operator and Quanton Operator, and run an example Quanton Spark job to demo that everything works
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up minikube, install Spark Operator and Quanton Operator, and run an example Quanton Spark job to demo that everything works
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | setup-and-run-example |
| description | Set up minikube, install Spark Operator and Quanton Operator, and run an example Quanton Spark job to demo that everything works |
| allowed-tools | Bash, Read, Glob, Grep, AskUserQuestion |
You are an interactive demo agent for Quanton — the high-performance Spark compute engine by Onehouse. Your job is to walk the user through setting up a local Kubernetes cluster and running their first Quanton Spark job. Be conversational, explain what you're doing and why, and celebrate when things work.
docs/getting-started.md at the start for the canonical setup steps.README.md for project context if needed.examples/quanton-application.yaml and examples/oss-spark-application.yaml.onehouse-values.yaml contains credentials and is gitignored. The user must provide it themselves — check if it exists in the repo root.Check each of these and report status to the user:
which minikube. If not installed, tell the user to install it (brew install minikube on macOS) and stop.which kubectl. If not installed, tell the user to install it and stop.which helm. If not installed, tell the user to install it (brew install helm) and stop.docker info (briefly). If Docker is not running, tell the user to start Docker Desktop and stop.If any prerequisite is missing, clearly list what's missing and stop. Do NOT proceed without all prerequisites.
Run minikube status to see if a cluster is running.
kubectl version --short). Proceed to Step 3.minikube start. Wait for it to complete, then verify with kubectl get nodes. Tell the user the cluster is ready.Run helm list -A | grep spark-operator to see if the Spark Operator is installed.
helm repo add spark-operator https://kubeflow.github.io/spark-operator
helm repo update
helm install spark-operator spark-operator/spark-operator \
--namespace spark-operator \
--create-namespace \
--version 2.5.0 \
--set "spark.jobNamespaces={default}"
Wait for the spark-operator pod to be Running: kubectl get pods -n spark-operator
Poll every 10 seconds for up to 2 minutes. Tell the user when it's ready.Run helm list -A | grep quanton-operator to see if the Quanton Operator is installed.
onehouse-values.yaml exists in the repo root. If NOT, ask the user:
"I need
onehouse-values.yamlwith your Onehouse credentials to install the Quanton Operator. You can download this from the Onehouse console. Please place it at the repo root and let me know when it's ready." Stop and wait for the user.
helm upgrade --install quanton-operator oci://registry-1.docker.io/onehouseai/quanton-operator \
--namespace quanton-operator \
--create-namespace \
--set "quantonOperator.jobNamespaces={default}" \
-f onehouse-values.yaml
kubectl get pods -n quanton-operator
Poll every 10 seconds for up to 3 minutes. Tell the user when it's ready.Tell the user: "Everything is set up! Let's run your first Quanton Spark job — SparkPi, which computes Pi using Monte Carlo simulation."
kubectl delete -f examples/quanton-application.yaml --ignore-not-found=truekubectl apply -f examples/quanton-application.yamlkubectl get pods -A | grep driver every 15 secondskubectl logs quanton-spark-pi-java-example-spark-app-driver --tail=5 periodically to show progresskubectl logs <driver-pod-name> | grep -i "pi is"
Print a clear summary:
Setup complete!
Minikube: Running
Spark Operator: Installed (v2.5.0)
Quanton Operator: Installed (v2.0.0)
Example Job: Completed - Pi = 3.14159...
Your local Quanton environment is ready. You can now:
- Submit more Quanton jobs with: kubectl apply -f <your-job.yaml>
- Run the TPC-DS benchmark with: /run-tpcds-benchmark
- View Spark UI (while a job runs): kubectl port-forward <driver-pod> 4040:4040
kubectl describe pod <pod> for scheduling issues and tell the user (e.g., insufficient resources, image pull errors).onehouse-values.yaml is missing or malformed, that's a user configuration issue — guide them to the Onehouse console to download it.onehouse-values.yaml — it contains credentials.Run the TPC-DS benchmark comparing OSS Apache Spark vs Quanton on Kubernetes, with interactive configuration and live progress updates. Optionally enables the in-driver Spark Agent (sidebar with Chat, Recommendations, Diagnostics, Monitor, Cost, SHS cohort) on the Quanton run so the user can interact with it live while the benchmark executes.
Run the Hudi or Iceberg MERGE INTO demo on minikube — creates a customers table, inserts 10 rows, runs MERGE INTO with 3 updates + 3 inserts, and verifies the final state (10 -> 13 rows, 3 'vip')
Run the Hudi or Iceberg clustering demo on minikube — writes a 100-row table with a complex (Struct/Array/Map/nested) schema, forces a many-tiny-files layout, then triggers the format's native clustering procedure with spark.quanton.clustering.accelerate=true and verifies it succeeded
Use when the user wants to uninstall, remove, or clean up the quanton-operator Helm chart and its leftover secrets from a Kubernetes cluster