Skip to content

Commit 6aea328

Browse files
committed
Windows cmds.
Signed-off-by: merobi-hub <[email protected]>
1 parent 6b4c189 commit 6aea328

File tree

1 file changed

+55
-3
lines changed

1 file changed

+55
-3
lines changed

docs/v2/docs/airflow_tutorial/index.mdx

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
1919

2020
Before you begin, make sure you have installed:
2121

22-
<Tabs groupId="prereqs">
22+
<Tabs groupId="os">
2323
<TabItem value="macos" label="MacOS/Linux">
2424

2525
* [Docker 17.05+](https://docs.docker.com/install)
@@ -43,7 +43,7 @@ Before you begin, make sure you have installed:
4343

4444
To checkout the Marquez source code, run:
4545

46-
<Tabs groupId="get">
46+
<Tabs groupId="os">
4747
<TabItem value="macos" label="MacOS/Linux">
4848

4949
```bash
@@ -63,7 +63,7 @@ $ git clone https://github.com/MarquezProject/marquez && cd marquez
6363

6464
Both Airflow and Marquez require port 5432 for their metastores, but the Marquez services are easier to configure. You can also assign the database service to a new port on the fly. To start Marquez using port 2345 for the database, run:
6565

66-
<Tabs groupId="start">
66+
<Tabs groupId="os">
6767
<TabItem value="macos" label="MacOS/Linux">
6868

6969
```bash
@@ -91,28 +91,80 @@ To view the Marquez UI and verify it's running, open [http://localhost:3000](htt
9191

9292
1. To configure Airflow to emit OpenLineage events to Marquez, you need to define an OpenLineage transport. One way you can do this is by using an environment variable. To use `http` and send events to the Marquez API running locally on port `5000`, run:
9393

94+
<Tabs groupId="os">
95+
<TabItem value="macos" label="MacOS/Linux">
96+
9497
```bash
9598
$ export AIRFLOW__OPENLINEAGE__TRANSPORT='{"type": "http", "url": "http://localhost:5000", "endpoint": "api/v1/lineage"}'
9699
```
97100

101+
</TabItem>
102+
<TabItem value="windows" label="Windows">
103+
104+
```bash
105+
$ set AIRFLOW__OPENLINEAGE__TRANSPORT='{"type": "http", "url": "http://localhost:5000", "endpoint": "api/v1/lineage"}'
106+
```
107+
108+
</TabItem>
109+
</Tabs>
110+
98111
2. You also need to define a namespace for Airflow jobs. It can be any string. Run:
99112

113+
<Tabs groupId="os">
114+
<TabItem value="macos" label="MacOS/Linux">
115+
100116
```bash
101117
$ export AIRFLOW__OPENLINEAGE__NAMESPACE='my-team-airflow-instance'
102118
```
103119

120+
</TabItem>
121+
<TabItem value="windows" label="Windows">
122+
123+
```bash
124+
$ set AIRFLOW__OPENLINEAGE__NAMESPACE='my-team-airflow-instance'
125+
```
126+
127+
</TabItem>
128+
</Tabs>
129+
104130
3. To add the required Airflow OpenLineage Provider package to your Airflow environment, run:
105131

132+
<Tabs groupId="os">
133+
<TabItem value="macos" label="MacOS/Linux">
134+
106135
```bash
107136
$ pip install apache-airflow-providers-openlineage
108137
```
109138

139+
</TabItem>
140+
<TabItem value="windows" label="Windows">
141+
142+
```bash
143+
$ pip install apache-airflow-providers-openlineage
144+
```
145+
146+
</TabItem>
147+
</Tabs>
148+
110149
4. To enable adding a Postgres connection for this tutorial, run:
111150

151+
<Tabs groupId="os">
152+
<TabItem value="macos" label="MacOS/Linux">
153+
112154
```bash
113155
$ pip install apache-airflow-providers-postgres
114156
```
115157

158+
</TabItem>
159+
<TabItem value="windows" label="Windows">
160+
161+
```bash
162+
$ pip install apache-airflow-providers-postgres
163+
```
164+
165+
</TabItem>
166+
</Tabs>
167+
116168
5. Now add both packages to `requirements.txt`:
117169

118170
```txt

0 commit comments

Comments
 (0)