dima_petukhov
03/29/2023, 2:38 PMmeltano invoke airflow scheduler
I have this error
ImportError: cannot import name 'Mapped' from 'sqlalchemy.orm' (/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/__init__.py)
Anyone had something similar?
I will add logs in discussiondima_petukhov
03/29/2023, 2:38 PMSven Balnojan
03/29/2023, 2:40 PMdima_petukhov
03/29/2023, 2:57 PMairflow version
failed
[I] [~/M/b/data-pipeline|system|3.8.16] ⚡️ 9,245s
‹main*› »»»» airflow version 1|165615
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:441 DeprecationWarning: The sql_alchemy_conn option in [core] has been moved to the sql_alchemy_conn option in [database] - the old setting has been used, but please update your config.
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:468 FutureWarning: The 'dag_default_view' setting in [webserver] has the old default value of 'tree'. This value has been changed to 'grid' in the running config, but please update your config before Apache Airflow 3.0.
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:468 FutureWarning: The 'log_filename_template' setting in [logging] has the old default value of '{{ ti.dag_id }}/{{ ti.task_id }}/{{ ts }}/{{ try_number }}.log'. This value has been changed to 'dag_id={{ ti.dag_id }}/run_id={{ ti.run_id }}/task_id={{ ti.task_id }}/{% if ti.map_index >= 0 %}map_index={{ ti.map_index }}/{% endif %}attempt={{ try_number }}.log' in the running config, but please update your config before Apache Airflow 3.0.
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:347 DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:468 FutureWarning: The 'auth_backends' setting in [api] has the old default value of 'airflow.api.auth.backend.deny_all'. This value has been changed to 'airflow.api.auth.backend.session' in the running config, but please update your config before Apache Airflow 3.0.
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:468 FutureWarning: The 'log_id_template' setting in [elasticsearch] has the old default value of '{dag_id}-{task_id}-{execution_date}-{try_number}'. This value has been changed to '{dag_id}-{task_id}-{run_id}-{map_index}-{try_number}' in the running config, but please update your config before Apache Airflow 3.0.
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:361 DeprecationWarning: The sql_alchemy_conn option in [core] has been moved to the sql_alchemy_conn option in [database] - the old setting has been used, but please update your config.
/usr/local/lib/python3.9/site-packages/airflow/settings.py:250 DeprecationWarning: The sql_alchemy_conn option in [core] has been moved to the sql_alchemy_conn option in [database] - the old setting has been used, but please update your config.
/usr/local/lib/python3.9/site-packages/airflow/settings.py:338 DeprecationWarning: The sql_alchemy_pool_enabled option in [core] has been moved to the sql_alchemy_pool_enabled option in [database] - the old setting has been used, but please update your config.
/usr/local/lib/python3.9/site-packages/airflow/settings.py:401 DeprecationWarning: The sql_engine_encoding option in [core] has been moved to the sql_engine_encoding option in [database] - the old setting has been used, but please update your config.
/usr/local/lib/python3.9/site-packages/airflow/cli/cli_parser.py:905 DeprecationWarning: The namespace option in [kubernetes] has been moved to the namespace option in [kubernetes_executor] - the old setting has been used, but please update your config.
2.5.2
[I] [~/M/b/data-pipeline|system|3.8.16] ⚡️ 0,742s
‹main*› »…dima_petukhov
03/30/2023, 9:06 AM• use the `LocalExecutor` instead of thedefault by setting theSequentialExecutor
setting (orcore.executor
environment variable) to `LocalExecutor`:AIRFLOW__CORE__EXECUTOR
• meltano config airflow set core.executor LocalExecutor
•
• export AIRFLOW__CORE__EXECUTOR=LocalExecutor
•meltano showed an error that it couldn't find the binary
‹main*› »»»» meltano invoke airflow scheduler 0|16:56:04
2023-03-29T14:56:08.975766Z [info ] Environment 'dev' is active
2023-03-29T14:56:13.837503Z [error ]
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Command `airflow version` failed
But when I removed LocalExecutor
setting, I was able to run airflowSven Balnojan
03/30/2023, 9:28 AMdima_petukhov
03/30/2023, 9:29 AM