File tree Expand file tree Collapse file tree 8 files changed +14
-14
lines changed
contrib/metadata-ingestion Expand file tree Collapse file tree 8 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 11
11
HIVESTORE = 'localhost'
12
12
13
13
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
14
- KAFKATOPIC = 'MetadataChangeEvent '
14
+ KAFKATOPIC = 'MetadataChangeEvent_v4 '
15
15
BOOTSTRAP = 'localhost:9092'
16
16
SCHEMAREGISTRY = 'http://localhost:8081'
17
17
Original file line number Diff line number Diff line change 15
15
SEARCHFILTER = 'givenname=Homer'
16
16
17
17
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
18
- KAFKATOPIC = 'MetadataChangeEvent '
18
+ KAFKATOPIC = 'MetadataChangeEvent_v4 '
19
19
BOOTSTRAP = 'localhost:9092'
20
20
SCHEMAREGISTRY = 'http://localhost:8081'
21
21
@@ -161,4 +161,4 @@ def produce_corp_user_mce(mce):
161
161
break
162
162
163
163
l .unbind ()
164
- sys .exit (0 )
164
+ sys .exit (0 )
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ FROM confluentinc/cp-kafka:5.4.0
3
3
4
4
CMD echo Waiting for Kafka to be ready... && \
5
5
cub kafka-ready -b $KAFKA_BOOTSTRAP_SERVER 1 60 && \
6
- kafka-topics --create --if-not-exists --zookeeper $KAFKA_ZOOKEEPER_CONNECT --partitions 1 --replication-factor 1 --topic MetadataAuditEvent && \
7
- kafka-topics --create --if-not-exists --zookeeper $KAFKA_ZOOKEEPER_CONNECT --partitions 1 --replication-factor 1 --topic MetadataChangeEvent && \
8
- kafka-topics --create --if-not-exists --zookeeper $KAFKA_ZOOKEEPER_CONNECT --partitions 1 --replication-factor 1 --topic FailedMetadataChangeEvent
6
+ kafka-topics --create --if-not-exists --zookeeper $KAFKA_ZOOKEEPER_CONNECT --partitions 1 --replication-factor 1 --topic MetadataAuditEvent_v4 && \
7
+ kafka-topics --create --if-not-exists --zookeeper $KAFKA_ZOOKEEPER_CONNECT --partitions 1 --replication-factor 1 --topic MetadataChangeEvent_v4 && \
8
+ kafka-topics --create --if-not-exists --zookeeper $KAFKA_ZOOKEEPER_CONNECT --partitions 1 --replication-factor 1 --topic FailedMetadataChangeEvent_v4
Original file line number Diff line number Diff line change 8
8
9
9
ZOOKEEPER = 'localhost:2181'
10
10
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
11
- KAFKATOPIC = 'MetadataChangeEvent '
11
+ KAFKATOPIC = 'MetadataChangeEvent_v4 '
12
12
BOOTSTRAP = 'localhost:9092'
13
13
SCHEMAREGISTRY = 'http://localhost:8081'
14
14
@@ -64,4 +64,4 @@ def produce_kafka_dataset_mce(mce):
64
64
print (topic )
65
65
build_kafka_dataset_mce (dataset_name , str (schema ), int (schema_version ))
66
66
67
- sys .exit (0 )
67
+ sys .exit (0 )
Original file line number Diff line number Diff line change 17
17
SEARCHFILTER = 'SEARCHFILTER'
18
18
19
19
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
20
- KAFKATOPIC = 'MetadataChangeEvent '
20
+ KAFKATOPIC = 'MetadataChangeEvent_v4 '
21
21
BOOTSTRAP = 'localhost:9092'
22
22
SCHEMAREGISTRY = 'http://localhost:8081'
23
23
@@ -154,4 +154,4 @@ def produce_corp_user_mce(mce):
154
154
break
155
155
156
156
l .unbind ()
157
- sys .exit (0 )
157
+ sys .exit (0 )
Original file line number Diff line number Diff line change 7
7
from confluent_kafka .avro .serializer import SerializerError
8
8
9
9
10
- topic = "MetadataChangeEvent "
10
+ topic = "MetadataChangeEvent_v4 "
11
11
12
12
class MetadataChangeEvent (object ):
13
13
Original file line number Diff line number Diff line change 12
12
PASSWORD = 'PASSWORD'
13
13
14
14
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
15
- KAFKATOPIC = 'MetadataChangeEvent '
15
+ KAFKATOPIC = 'MetadataChangeEvent_v4 '
16
16
BOOTSTRAP = 'localhost:9092'
17
17
SCHEMAREGISTRY = 'http://localhost:8081'
18
18
@@ -77,4 +77,4 @@ def produce_mysql_dataset_mce(mce):
77
77
except Error as e :
78
78
sys .stdout .write ('Error while connecting to MySQL %s' % e )
79
79
80
- sys .exit (0 )
80
+ sys .exit (0 )
Original file line number Diff line number Diff line change 15
15
@dataclass
16
16
class KafkaConfig :
17
17
avsc_path = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
18
- kafka_topic = 'MetadataChangeEvent '
18
+ kafka_topic = 'MetadataChangeEvent_v4 '
19
19
bootstrap_server = 'localhost:9092'
20
20
schema_registry = 'http://localhost:8081'
21
21
You can’t perform that action at this time.
0 commit comments