我的想法是在运行prometheus operator的k8s集群上使用spark-submit。现在我知道prometheus operator可以响应ServiceMonitor yaml,但是我对如何使用spark-submit提供YAML中所需的一些东西感到困惑apiVersionmatchNames: endpoints:
- port: 8192 ---> How to provide the name to port using `spark-submit
我想知道如何在PyCharm中开发apache-spark程序。我关注了这篇中的文章。我很好地定义了SPARK_HOME并将pyspark添加到Python path中。导入pyspark模块时没有错误,自动完成工作正常。Error: Must specify a primary resource (JAR or Python or R file)...Exception: