You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/25 23:46:17 UTC

[GitHub] [airflow] potiuk commented on issue #27147: SparkKubernetesOperator: Dag fails when application_file sent as a ".yaml" file

potiuk commented on issue #27147:
URL: https://github.com/apache/airflow/issues/27147#issuecomment-1291256560

   Yep. This is as expected. @fzkhouy  You should add this:
   
   ```
   template_searchpath='/opt/airflow/kubernetes/templates/' 
   ```
   
   to your Dag object and use `airflow-worker-template.yaml` as your template name.
   
   Look at our docs: https://airflow.apache.org/docs/apache-airflow/stable/tutorial/fundamentals.html#templating-with-jinja - it is clearly described there.
   
   we are using "file loader" in JINJA and it expects separate "template directory" and template name.
   
   Closing as invalid. Please explain if I misunderstood, we can still re-open it, but from the examples you posted it is just wrong usage. If you have other examples that correctly use templates, you can post them here and example exactly what you want to do and the problem you see (following the examples) . Maybe this is a different problem that we misunderstood. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org