airflow

Issue on airflow initdb

社会主义新天地 提交于 2021-01-02 07:17:17
问题 I just start using airflow and I used the command : airflow initdb to initiate the airflow db as the setup required. But I stumbled on the error : import cattr File "/home/adrienb/anaconda3/lib/python3.8/site-packages/cattr/__init__.py", line 1, in <module> from .converters import Converter, GenConverter, UnstructureStrategy File "/home/adrienb/anaconda3/lib/python3.8/site-packages/cattr/converters.py", line 16, in <module> from attr import fields, resolve_types ImportError: cannot import

Issue on airflow initdb

老子叫甜甜 提交于 2021-01-02 07:15:13
问题 I just start using airflow and I used the command : airflow initdb to initiate the airflow db as the setup required. But I stumbled on the error : import cattr File "/home/adrienb/anaconda3/lib/python3.8/site-packages/cattr/__init__.py", line 1, in <module> from .converters import Converter, GenConverter, UnstructureStrategy File "/home/adrienb/anaconda3/lib/python3.8/site-packages/cattr/converters.py", line 16, in <module> from attr import fields, resolve_types ImportError: cannot import

Issue on airflow initdb

有些话、适合烂在心里 提交于 2021-01-02 07:14:26
问题 I just start using airflow and I used the command : airflow initdb to initiate the airflow db as the setup required. But I stumbled on the error : import cattr File "/home/adrienb/anaconda3/lib/python3.8/site-packages/cattr/__init__.py", line 1, in <module> from .converters import Converter, GenConverter, UnstructureStrategy File "/home/adrienb/anaconda3/lib/python3.8/site-packages/cattr/converters.py", line 16, in <module> from attr import fields, resolve_types ImportError: cannot import

Why do I get no such table error when installing Apache Airflow on Mac?

泪湿孤枕 提交于 2021-01-02 05:21:21
问题 It was so hard to put that right title. Ok, here it goes. I was following this tutorial to install Apache Airflow on my Mac (Mojave version) - https://towardsdatascience.com/getting-started-with-apache-airflow-df1aa77d7b1b Right at the first step after performing the pip install airflow task, when I run the airflow version command I am getting the following error and then the airflow version appears - ERROR - Failed on pre-execution callback using Traceback (most recent call last): File "

Airflow Scheduler Not Respecting EndTime with datetime.now()+timedelta()

匆匆过客 提交于 2021-01-02 02:48:12
问题 I am trying schedule a dag to run every x seconds. I put the start time as a past date with catchup = False and end time as few seconds into the future. Although the dag starts as expected, it does not end and goes on forever. The dag ends if I use an absolute end time like datetime(2019,9,26) but not with datetime.now()+timedelta(seconds=100) start_date = datetime(2019, 1, 1) end_date = datetime.now()+timedelta(seconds=200) default_args = { "owner": "airflow", "depends_on_past": True, "start

Airflow Scheduler Not Respecting EndTime with datetime.now()+timedelta()

末鹿安然 提交于 2021-01-02 02:48:04
问题 I am trying schedule a dag to run every x seconds. I put the start time as a past date with catchup = False and end time as few seconds into the future. Although the dag starts as expected, it does not end and goes on forever. The dag ends if I use an absolute end time like datetime(2019,9,26) but not with datetime.now()+timedelta(seconds=100) start_date = datetime(2019, 1, 1) end_date = datetime.now()+timedelta(seconds=200) default_args = { "owner": "airflow", "depends_on_past": True, "start

Airflow Scheduler Not Respecting EndTime with datetime.now()+timedelta()

对着背影说爱祢 提交于 2021-01-02 02:41:20
问题 I am trying schedule a dag to run every x seconds. I put the start time as a past date with catchup = False and end time as few seconds into the future. Although the dag starts as expected, it does not end and goes on forever. The dag ends if I use an absolute end time like datetime(2019,9,26) but not with datetime.now()+timedelta(seconds=100) start_date = datetime(2019, 1, 1) end_date = datetime.now()+timedelta(seconds=200) default_args = { "owner": "airflow", "depends_on_past": True, "start

Unable to execute Airflow KubernetesExecutor

被刻印的时光 ゝ 提交于 2020-12-31 13:48:07
问题 Following the project from here, I am trying to integrate airflow kubernetes executor using NFS server as backed storage PV. I've a PV airflow-pv which is linked with NFS server. Airflow webserver and scheduler are using a PVC airflow-pvc which is bound with airflow-pv . I've placed my dag files in NFS server /var/nfs/airflow/development/<dags/logs> . I can see newly added DAGS in webserver UI aswell. However when I execute a DAG from UI, the scheduler fires a new POD for that tasks BUT the

Unable to execute Airflow KubernetesExecutor

﹥>﹥吖頭↗ 提交于 2020-12-31 13:43:14
问题 Following the project from here, I am trying to integrate airflow kubernetes executor using NFS server as backed storage PV. I've a PV airflow-pv which is linked with NFS server. Airflow webserver and scheduler are using a PVC airflow-pvc which is bound with airflow-pv . I've placed my dag files in NFS server /var/nfs/airflow/development/<dags/logs> . I can see newly added DAGS in webserver UI aswell. However when I execute a DAG from UI, the scheduler fires a new POD for that tasks BUT the

Unable to execute Airflow KubernetesExecutor

别等时光非礼了梦想. 提交于 2020-12-31 13:40:28
问题 Following the project from here, I am trying to integrate airflow kubernetes executor using NFS server as backed storage PV. I've a PV airflow-pv which is linked with NFS server. Airflow webserver and scheduler are using a PVC airflow-pvc which is bound with airflow-pv . I've placed my dag files in NFS server /var/nfs/airflow/development/<dags/logs> . I can see newly added DAGS in webserver UI aswell. However when I execute a DAG from UI, the scheduler fires a new POD for that tasks BUT the