mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-11 00:42:29 +00:00
docs(airflow): update plugin setup docs to include UI setup approach (#9253)
This commit is contained in:
parent
b778def10a
commit
c348f841c6
@ -37,12 +37,24 @@ pip install 'acryl-datahub-airflow-plugin[plugin-v2]'
|
|||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
Set up a DataHub connection in Airflow.
|
Set up a DataHub connection in Airflow, either via command line or the Airflow UI.
|
||||||
|
|
||||||
|
#### Command Line
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
airflow connections add --conn-type 'datahub-rest' 'datahub_rest_default' --conn-host 'http://datahub-gms:8080' --conn-password '<optional datahub auth token>'
|
airflow connections add --conn-type 'datahub-rest' 'datahub_rest_default' --conn-host 'http://datahub-gms:8080' --conn-password '<optional datahub auth token>'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Airflow UI
|
||||||
|
|
||||||
|
On the Airflow UI, go to Admin -> Connections and click the "+" symbol to create a new connection. Select "DataHub REST Server" from the dropdown for "Connection Type" and enter the appropriate values.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/airflow/plugin_connection_setup.png"/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
#### Optional Configurations
|
||||||
|
|
||||||
No additional configuration is required to use the plugin. However, there are some optional configuration parameters that can be set in the `airflow.cfg` file.
|
No additional configuration is required to use the plugin. However, there are some optional configuration parameters that can be set in the `airflow.cfg` file.
|
||||||
|
|
||||||
```ini title="airflow.cfg"
|
```ini title="airflow.cfg"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user