Skip to content

Commit 4143fb9

Browse files
authored
<refactor>[ingestions]: align the default kafka topics with PR #1756 (#1758)
1 parent 779eaee commit 4143fb9

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

contrib/metadata-ingestion/bin/dataset-hive-generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
HIVESTORE='localhost'
1212

1313
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
14-
KAFKATOPIC = 'MetadataChangeEvent'
14+
KAFKATOPIC = 'MetadataChangeEvent_v4'
1515
BOOTSTRAP = 'localhost:9092'
1616
SCHEMAREGISTRY = 'http://localhost:8081'
1717

contrib/metadata-ingestion/openldap-etl/openldap-etl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
SEARCHFILTER='givenname=Homer'
1616

1717
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
18-
KAFKATOPIC = 'MetadataChangeEvent'
18+
KAFKATOPIC = 'MetadataChangeEvent_v4'
1919
BOOTSTRAP = 'localhost:9092'
2020
SCHEMAREGISTRY = 'http://localhost:8081'
2121

@@ -161,4 +161,4 @@ def produce_corp_user_mce(mce):
161161
break
162162

163163
l.unbind()
164-
sys.exit(0)
164+
sys.exit(0)

docker/kafka/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ FROM confluentinc/cp-kafka:5.4.0
33

44
CMD echo Waiting for Kafka to be ready... && \
55
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

metadata-ingestion/kafka-etl/kafka_etl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
ZOOKEEPER='localhost:2181'
1010
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
11-
KAFKATOPIC = 'MetadataChangeEvent'
11+
KAFKATOPIC = 'MetadataChangeEvent_v4'
1212
BOOTSTRAP = 'localhost:9092'
1313
SCHEMAREGISTRY = 'http://localhost:8081'
1414

@@ -64,4 +64,4 @@ def produce_kafka_dataset_mce(mce):
6464
print(topic)
6565
build_kafka_dataset_mce(dataset_name, str(schema), int(schema_version))
6666

67-
sys.exit(0)
67+
sys.exit(0)

metadata-ingestion/ldap-etl/ldap_etl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
SEARCHFILTER='SEARCHFILTER'
1818

1919
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
20-
KAFKATOPIC = 'MetadataChangeEvent'
20+
KAFKATOPIC = 'MetadataChangeEvent_v4'
2121
BOOTSTRAP = 'localhost:9092'
2222
SCHEMAREGISTRY = 'http://localhost:8081'
2323

@@ -154,4 +154,4 @@ def produce_corp_user_mce(mce):
154154
break
155155

156156
l.unbind()
157-
sys.exit(0)
157+
sys.exit(0)

metadata-ingestion/mce-cli/mce_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from confluent_kafka.avro.serializer import SerializerError
88

99

10-
topic = "MetadataChangeEvent"
10+
topic = "MetadataChangeEvent_v4"
1111

1212
class MetadataChangeEvent(object):
1313

metadata-ingestion/mysql-etl/mysql_etl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
PASSWORD = 'PASSWORD'
1313

1414
AVROLOADPATH = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
15-
KAFKATOPIC = 'MetadataChangeEvent'
15+
KAFKATOPIC = 'MetadataChangeEvent_v4'
1616
BOOTSTRAP = 'localhost:9092'
1717
SCHEMAREGISTRY = 'http://localhost:8081'
1818

@@ -77,4 +77,4 @@ def produce_mysql_dataset_mce(mce):
7777
except Error as e:
7878
sys.stdout.write('Error while connecting to MySQL %s' % e)
7979

80-
sys.exit(0)
80+
sys.exit(0)

metadata-ingestion/sql-etl/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@dataclass
1616
class KafkaConfig:
1717
avsc_path = '../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc'
18-
kafka_topic = 'MetadataChangeEvent'
18+
kafka_topic = 'MetadataChangeEvent_v4'
1919
bootstrap_server = 'localhost:9092'
2020
schema_registry = 'http://localhost:8081'
2121

0 commit comments

Comments
 (0)