mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-13 17:59:48 +00:00
Quick readme updates
This commit is contained in:
parent
9d741815c5
commit
62bb7f012f
@ -1,7 +1,9 @@
|
|||||||
# Dev
|
# Dev
|
||||||
## Set up dev environment
|
## Dependencies
|
||||||
- On MacOS: `brew install librdkafka`
|
- On MacOS: `brew install librdkafka`
|
||||||
- On Debian/Ubuntu: `sudo apt install librdkafka-dev`
|
- On Debian/Ubuntu: `sudo apt install librdkafka-dev`
|
||||||
|
|
||||||
|
## Set up dev environment
|
||||||
- python3 -m venv venv
|
- python3 -m venv venv
|
||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
- pip install -e .
|
- pip install -e .
|
||||||
@ -13,8 +15,32 @@
|
|||||||
# Sanity check code before checkin (currently broken)
|
# Sanity check code before checkin (currently broken)
|
||||||
- flake8 src test && mypy -p gometa && black --check -l 120 src test && isort --check-only src test && pytest
|
- flake8 src test && mypy -p gometa && black --check -l 120 src test && isort --check-only src test && pytest
|
||||||
|
|
||||||
# Run recipe
|
# Recipes
|
||||||
- ./recipes/kafka_to_console.sh
|
|
||||||
|
A recipe is a configuration that tells our ingestion scripts where to pull data from (source) and where to put it (sink).
|
||||||
|
Here's a simple example that pulls metadata from MSSQL and puts it into datahub.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
source:
|
||||||
|
type: mssql
|
||||||
|
mssql:
|
||||||
|
username: sa
|
||||||
|
password: test!Password
|
||||||
|
database: DemoData
|
||||||
|
|
||||||
|
sink:
|
||||||
|
type: "datahub-rest"
|
||||||
|
datahub-rest:
|
||||||
|
server: 'http://localhost:8080'
|
||||||
|
```
|
||||||
|
|
||||||
|
Running a recipe is quite easy.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gometa-ingest -c ./recipes/kafka_to_datahub_rest.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
A number of recipes are included in the recipes directory.
|
||||||
|
|
||||||
# Using Docker
|
# Using Docker
|
||||||
## Build the image
|
## Build the image
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
#gometa-ingest -c recipes/kafka_to_console.yaml
|
|
||||||
gometa-ingest -c recipes/kafka_to_console.toml
|
|
||||||
@ -1,4 +1,3 @@
|
|||||||
from __future__ import annotations
|
|
||||||
import json
|
import json
|
||||||
import os.path
|
import os.path
|
||||||
import decimal
|
import decimal
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user