Skip to content

Commit

Permalink
Classified the ETL jobs in metadata-ingestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
RealChrisL committed Sep 16, 2019
1 parent 28b876f commit 81a38f8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions metadata-ingestion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ optional arguments:
```
## Bootstrapping Data Hub
If you want to quickly ingest lots of sample data and test Data Hub in action, you can run below command:
Leverage the mce-cli to quickly ingest lots of sample data and test Data Hub in action, you can run below command:
```
➜ python mce_cli.py produce -d bootstrap_mce.dat
Producing MetadataChangeEvent records to topic MetadataChangeEvent. ^c to exit.
Expand All @@ -45,7 +45,7 @@ Flushing records...
This will bootstrap Data Hub with sample datasets and sample users.
## Ingest metadata from LDAP server to Data Hub
The ldap_etl.py provides you ETL channel to communicate with your LDAP server.
The ldap_etl provides you ETL channel to communicate with your LDAP server.
```
➜ Config your LDAP server environmental variable in the file
LDAPSERVER # Your server host.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
ATTRLIST = ['cn', 'title', 'mail', 'sAMAccountName', 'department','manager']
SEARCHFILTER='SEARCHFILTER'

AVROLOADPATH = 'AVROLOADPATH'
KAFKATOPIC = 'KAFKATOPIC'
BOOTSTRAP = 'BOOTSTRAP'
SCHEMAREGISTRY = 'SCHEMAREGISTRY'
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
KAFKATOPIC = 'MetadataChangeEvent'
BOOTSTRAP = 'localhost:9092'
SCHEMAREGISTRY = 'http://localhost:8081'

def create_controls(pagesize):
"""
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#! /usr/bin/python
import argparse
from confluent_kafka import avro

record_schema = avro.load("../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc")
record_schema = avro.load("../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc")
topic = "MetadataChangeEvent"

class MetadataChangeEvent(object):
Expand Down

0 comments on commit 81a38f8

Please sign in to comment.