View in Airflow broken on my deployment When I cl...
# troubleshoot
m
View in Airflow broken on my deployment When I click the
View in Airflow
button in my deployed Datahub, it opens something else (seems like it is reloading the current page I'm on). When I look at the navigation URL of the button (
href
), I see something like:
<https://datahub.mydomain.com/tasks/urn:li:dataJob:(urn:li:dataFlow:(airflow,xxxxx,prod),xxxxx)/airflow.mydomain.com/taskinstance/list/?flt1_dag_id_equals=xxxxx&_flt_3_task_id=xxxxx>
where
<http://airflow.mydomain.com/taskinstance/list/?flt1_dag_id_equals=xxxxx&_flt_3_task_id=xxxxx|airflow.mydomain.com/taskinstance/list/?flt1_dag_id_equals=xxxxx&_flt_3_task_id=xxxxx>
is a valid URL (I can open it up in my browser and what I get is what I expected). So the
href
is like https://`<datahub domain>`/`<params and urn of the airflow task>`/`<airflow domain>`/`<params of the airflow task>` I also have a Superset integration and when I look at the
href
of the
View in Superset
button, I see a real Superset URL without a datahub URL prepended. That button works well. Why is the Airflow button href different?
o
In lineage_core.py we are prepending a base url to the airflow external url: https://github.com/datahub-project/datahub/blob/master/metadata-ingestion/src/datahub_provider/_lineage_core.py#L136 pulled from the Airflow webserver.base_url property. Superset constructs the externalUrl in a different way
m
What's the reason behind prepending a base url? Why not use the airflow url as-is?
d
Baseurl is provided by airflow and it points to your airflow instance
plus1 1
normally you don’t need as it is provided by airflow
m
@orange-night-91387 @dazzling-judge-80093 I have fixed my problem, the base_url was not set properly, it didn't start with
https://
, so the end url was considered relative by the frontend. All good now, thanks for reply.
🙌 1
d
awesome, thanks for the heads up