Failed to extract xcom from airflow pod - Kubernetes Pod Operator

前端 未结 3 452
感动是毒
感动是毒 2021-01-13 02:45

While running a DAG which runs a jar using a docker image,
xcom_push=True is given which creates another container along with the docker image in a sing

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-13 03:09

    If xcom_push is True then KubernetesPodOperator creates one more sidecar container (airflow-xcom-sidecar) in Pod along with the base container(actual worker container). This sidecar container reads data from /airflow/xcom/return.json and returns as xcom value. So in your base container you need to write the data you want to return in /airflow/xcom/return.json file.

提交回复
热议问题