gunnar
05/07/2021, 4:20 PMmeltano invoke airflow scheduler -D
Resulted in:
[2021-05-07 16:16:43,402] [3524773|MainThread|meltano.cli.invoke] [ERROR] The 'initdb' command is deprecated and removed in Airflow 2.0, please use 'db init' instead
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade 127d2bf2dfa7 -> cc1e65623dc7, add max tries column to task instance
Traceback (most recent call last):
File "/home/ubuntu/meltano-projects/project/.meltano/orchestrators/airflow/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "/home/ubuntu/meltano-projects/project/.meltano/orchestrators/airflow/venv/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: duplicate column name: max_triesgunnar
05/07/2021, 4:20 PMmeltano invoke airflow version
Resulted in the same error outputdouwe_maan
05/07/2021, 4:21 PMgunnar
05/07/2021, 4:22 PMgunnar
05/07/2021, 4:23 PMmeltano, version 1.73.0douwe_maan
05/07/2021, 4:23 PMThe 'initdb' command is deprecated and removed in Airflow 2.0, please use 'db init' instead surprises me, because Meltano should detect the Airflow version and call the right command: https://gitlab.com/meltano/meltano/-/blob/master/src/meltano/core/plugin/airflow.py#L93douwe_maan
05/07/2021, 4:24 PMduplicate column name: max_tries error has been reported to Airflow before: https://issues.apache.org/jira/browse/AIRFLOW-2268gunnar
05/07/2021, 4:24 PMorchestrators:
- name: airflow
pip_url: apache-airflow==1.10.14 --constraint <https://raw.githubusercontent.com/apache/airflow/constraints-1.10.14/constraints-3.6.txt>
files:
- name: airflow
pip_url: git+<https://gitlab.com/meltano/files-airflow.git>douwe_maan
05/07/2021, 4:25 PMgunnar
05/07/2021, 4:26 PMmeltano add orchestrator airflowdouwe_maan
05/07/2021, 4:27 PMmeltano install orchestrator airflow again just to be sure?gunnar
05/07/2021, 4:28 PMdouwe_maan
05/07/2021, 4:28 PMThe 'initdb' command is deprecated and removed in Airflow 2.0, please use 'db init' instead, but that's suprisinggunnar
05/07/2021, 4:33 PMairflow initdb failed`douwe_maan
05/07/2021, 4:34 PMmeltano --log-level=debug?gunnar
05/07/2021, 4:39 PMsqlalchemy.exc.OperationalError: (sqlite3.OperationalError) duplicate column name: max_tries
[SQL: ALTER TABLE task_instance ADD COLUMN max_tries INTEGER DEFAULT '-1']
(Background on this error at: <http://sqlalche.me/e/13/e3q8>)
Otherwise I'm not too sure. Looking into it further and will update.
I have multiple schedules configured already in meltano.yml, which shouldn't cause any issue, but wanted to mention incase you've seen this before with Meltano.douwe_maan
05/07/2021, 4:41 PMdouwe_maan
05/07/2021, 4:42 PMgunnar
05/07/2021, 4:42 PMgunnar
05/07/2021, 4:49 PM.meltano/orchestrators/airflow/airflow.db and then continue to try and execute airflow commands like airflow version via the meltano invoke command.douwe_maan
05/07/2021, 4:49 PMgunnar
05/07/2021, 4:50 PMdouwe_maan
05/07/2021, 4:50 PM