首页 > 解决方案 > Helm - Spark 运算符示例/spark-pi.yaml 不存在

问题描述

我已经使用Helm Chart将 Spark Operator 部署到 GKE到自定义命名空间:

helm install --name sparkoperator incubator/sparkoperator --namespace custom-ns --set sparkJobNamespace=custom-ns

并使用 . 确认在集群中运行的算子helm status sparkoperator

但是,当我尝试运行 Spark Pi 示例时kubectl apply -f examples/spark-pi.yaml,出现以下错误:

the path "examples/spark-pi.yaml" does not exist

有几件事我可能仍然没有得到:

  1. examples/spark-pi.yaml部署运营商后实际位于哪里?
  2. 我还应该检查什么以及我应该采取哪些其他步骤来使示例正常工作?

标签: apache-sparkkubernetesgoogle-cloud-platformgoogle-kubernetes-enginekubernetes-helm

解决方案


请在此处spark-pi.yaml找到该文件。

您应该将其复制到您的文件系统,如果需要对其进行自定义,并使用kubectl apply -f path/to/spark-pi.yaml.


推荐阅读