xs2tarunkukreja opened a new issue, #34987:
URL: https://github.com/apache/airflow/issues/34987

   ### Apache Airflow version
   
   2.7.2
   
   ### What happened
   
   Currently I am using -
   Python version: 3.8.18
   Airflow version: 2.7.1v (on K8S)
   
   When we run SparkKubernetesOperator function with YAML file path, it work 
fine. But when we are running the same after reading the YAML file, it fails.
   
   Example -
   def load_template_v1():
       ....
   
       with open(template_path) as pyspark_template_file:
           template = yaml.safe_load(pyspark_template_file)
   
       return template
   
   
   
   ### What you think should happen instead
   
   It should launch Spark Operator successfully.
   
   ### How to reproduce
   
   Instead of passing YAML file, pass the content of file.
   
   ### Operating System
   
   K8S 
   
   ### Versions of Apache Airflow Providers
   
   
   Python version: 3.8.18
   Airflow version: 2.7.1
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   HELM
   
   Python version: 3.8.18
   Airflow version: 2.7.1
   
   ### Anything else
   
   No
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to