尝试在气流中获得火花连接ID时出错

发布于 2025-01-25 07:21:02 字数 597 浏览 4 评论 0 原文

我的 sparksubmitoperator 在气流dag中的外观如下,下面是我的 connection_id'spark_local' in Airflow ui as ,如果这里缺少任何东西,有人可以帮我吗?

sparksubmitoperator(task_id ='spark_task',application ='gs://xxx/xxx.jar',conf = {“ spark.driver.allowmultiplecontexts”:true,spark.blacklist.enabled} ='spark_local',java_class ='xxx',jars = [“ gs:// xxx/*”],application_args = [“ xxx” xxx“ xxx,xxx,])>

My SparkSubmitOperator in airflow DAG looks as below, below is my connection_id 'spark_local' in Airflow UI as Apache Spark Connection when I try running my DAG am getting this error Airflow error, can anyone please help me if am missing anything here?

SparkSubmitOperator (task_id='spark_task', application = 'gs://xxx/xxx.jar', conf = {"spark.driver.allowMultipleContexts":True, "spark.blacklist.enabled":False}, conn_id='spark_local', java_class = 'xxx', jars=["gs://xxx/*"], application_args=["xxx "xxx" "xxx,] )

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅听莫相离 2025-02-01 07:21:02

基于 typeError ,来自文档 https://airflow.apache.org/docs/apache-apache-airflow/1.10.12/_api/_api/_api/airflow/contrib/contrib/contrib/contrib/contrib/spark_submit_submit_operator/intib_submit_operator/intex.htex.htex.htex.html jars 参数应该是字符串。您可以尝试 jars =“ gs:// xxx/*” 作为字符串以查看是否正常工作?

Based on the TypeError , from the documentation https://airflow.apache.org/docs/apache-airflow/1.10.12/_api/airflow/contrib/operators/spark_submit_operator/index.html, it said that jars argument should be a string. Could you try jars="gs://xxx/*" as a string instead to see if it's working?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文