Hi guys When I make a request from airflow server...
# ingestion
b
Hi guys When I make a request from airflow server to datahub with below code, The airflow server is set to localhost, can I not change this value?? operator code
Copy code
emit_lineage_task = DatahubEmitterOperator(
    task_id=f"emit_lineage_{table}",
    datahub_conn_id="datahub_rest_default",
    mces=[
        builder.make_lineage_mce(
            upstream_urns=upstreams,
            downstream_urn=builder.make_dataset_urn(downstream[0], downstream[1]),
        )
    ],
)
emit_lineage_task.execute(kwargs)
log file
Copy code
[2022-06-13 09:27:43,912] {_lineage_core.py:67} INFO - Emitted from Lineage: 
    DataFlow(urn=<datahub.utilities.urns.data_flow_urn.DataFlowUrn object at 0x7f9bcf23eee0>, ... url='<http://localhost:8080/tree?dag_id=dag>', ...)
d
You need to set the
base_url
config parameter in your airflow config: https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#base-url
thank you 1