mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-01 19:25:56 +00:00
Update README.md
This commit is contained in:
parent
5ea160b655
commit
381c3e7fcd
@ -24,6 +24,10 @@ way to do that is through [Docker images](../docker).
|
||||
Every MCE in the data file should be in a single line. It also supports consuming from
|
||||
`MetadataChangeEvent` topic.
|
||||
|
||||
Tested & confirmed platforms:
|
||||
* Red Hat Enterprise Linux Workstation release 7.6 (Maipo) w/Python 3.6.8
|
||||
* MacOS 10.15.5 (19F101) Darwin 19.5.0 w/Python 3.7.3
|
||||
|
||||
```
|
||||
➜ python mce_cli.py --help
|
||||
usage: mce_cli.py [-h] [-b BOOTSTRAP_SERVERS] [-s SCHEMA_REGISTRY]
|
||||
@ -44,9 +48,14 @@ optional arguments:
|
||||
```
|
||||
|
||||
## Bootstrapping DataHub
|
||||
Run the mce-cli to quickly ingest lots of sample data and test DataHub in action, you can run below command:
|
||||
* Apply the step 1 & 2 from prerequisites.
|
||||
* [Optional] Open a new terminal to consume the events:
|
||||
```
|
||||
➜ python mce_cli.py produce -d bootstrap_mce.dat
|
||||
➜ python3 metadata-ingestion/mce-cli/mce_cli.py consume -l metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc
|
||||
```
|
||||
* Run the mce-cli to quickly ingest lots of sample data and test DataHub in action, you can run below command:
|
||||
```
|
||||
➜ python3 metadata-ingestion/mce-cli/mce_cli.py produce -l metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc -d metadata-ingestion/mce-cli/bootstrap_mce.dat
|
||||
Producing MetadataChangeEvent records to topic MetadataChangeEvent. ^c to exit.
|
||||
MCE1: {"auditHeader": None, "proposedSnapshot": ("com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot", {"urn": "urn:li:corpuser:foo", "aspects": [{"active": True,"email": "foo@linkedin.com"}]}), "proposedDelta": None}
|
||||
MCE2: {"auditHeader": None, "proposedSnapshot": ("com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot", {"urn": "urn:li:corpuser:bar", "aspects": [{"active": False,"email": "bar@linkedin.com"}]}), "proposedDelta": None}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user