Getting the following error when trying to set up ...
# troubleshoot
h
Getting the following error when trying to set up airflow with datahub: Following - https://datahubproject.io/docs/metadata-ingestion/#lineage-with-airflow
m
@handsome-football-66174 are you using the
lineage_backend
option?
h
@mammoth-bear-12532 - Yes using lineage backend option. On step airflow connections add --conn-type 'datahub_rest' 'datahub_rest_default' --conn-host 'http://localhost:8080'
@mammoth-bear-12532 - Any prerequisites for this ?
@mammoth-bear-12532 - Never mind - Had to run airflow db init May be this can be added for people new to airflow
m
Thanks for letting us know @handsome-football-66174. Is that something to add as part of pre-requisites (e.g. how to set up Airflow locally)?
h
Yes Had to execute airflow db init, to initialize the airflow database.
@mammoth-bear-12532 - How to connect to a centrally running Airflow instance ? Any steps on this ?
Also with the locally installed airflow getting this - File "/home/airflow/.venv/airflow/lib64/python3.7/site-packages/airflow/configuration.py", line 470, in getimport f'The object could not be loaded. Please check "{key}" key in "{section}" section. ' airflow.exceptions.AirflowConfigException: The object could not be loaded. Please check "backend" key in "lineage" section. Current value: "datahub_provider.lineage.datahub.DatahubLineageBacken
m
@handsome-football-66174 how are you installing the local airflow?