Hi Team, We are facing this error when installing ...
# troubleshoot
h
Hi Team, We are facing this error when installing Datahub packages in Airflow instances :
Copy code
File "/root/.venvs/airflow/lib/python3.7/site-packages/airflow/lineage/__init__.py", line 103, in apply_lineage
    _backend = get_backend()
  File "/root/.venvs/airflow/lib/python3.7/site-packages/airflow/lineage/__init__.py", line 52, in get_backend
    clazz = conf.getimport("lineage", "backend", fallback=None)
  File "/root/.venvs/airflow/lib/python3.7/site-packages/airflow/configuration.py", line 675, 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.DatahubLineageBackend".
We are using the following configurations :
Copy code
[lineage]
backend = datahub_provider.lineage.datahub.DatahubLineageBackend
datahub_kwargs = {
    "enabled": true,
    "datahub_conn_id": "datahub_rest_default",
    "cluster": "prod",
    "capture_ownership_info": true,
    "capture_tags_info": true,
    "graceful_exceptions": true }
b
h
@bulky-electrician-72362 - Thank you for sharing the info ! with the latest changes I dont see where to configure to set capture executions in Airflow to true Do we directly add these configurations to airflow.cfg ? https://datahubproject.io/docs/lineage/airflow/#setup ( step 4 )
@bulky-electrician-72362 - lazy_load_plugins = False is required for Backend lineage , is this mandatory ?
@bulky-electrician-72362 @dazzling-judge-80093 - With the Latest Airflow Plugin https://datahubproject.io/docs/lineage/airflow/#setup which use the configuration
Copy code
[core]
lazy_load_plugins = False
But this effects other Jobs, which require them to restart Airflow each time there is a new script that needs to be used.