datahub/metadata-ingestion/examples/recipes/secured_kafka.dhub.yaml
Hyejin Yoon f986315582
doc: Acryl to DataHub, datahubproject.io to datahub.com (#13252)
Co-authored-by: Jay <159848059+jayacryl@users.noreply.github.com>
2025-04-28 10:34:33 -04:00

46 lines
2.1 KiB
YAML

# see https://docs.datahub.com/docs/generated/ingestion/sources/kafka for complete documentation
source:
type: "kafka"
config:
connection:
bootstrap: "broker:9092"
consumer_config:
# See https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#serde-consumer
security.protocol: "ssl"
ssl.ca.location: "certificate_ca.pem"
ssl.certificate.location: "certificate.pem"
ssl.key.location: "private_key.pem"
ssl.key.password: "XXXXXXX"
schema_registry_url: "http://localhost:8081"
schema_registry_config:
# See https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#confluent_kafka.schema_registry.SchemaRegistryClient
# Most of these config keys are optional.
ssl.ca.location: "certificate_ca.pem"
ssl.certificate.location: "certificate.pem"
ssl.key.location: "private_key.pem"
ssl.key.password: "XXXXXXX"
basic.auth.user.info: "user:secret" # optional
# see https://docs.datahub.com/docs/metadata-ingestion/sink_docs/datahub for complete documentation
sink:
type: "datahub-kafka"
config:
connection:
bootstrap: "broker:9092"
producer_config:
# See https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#serde-consumer
security.protocol: "ssl"
ssl.ca.location: "certificate_ca.pem"
ssl.certificate.location: "certificate.pem"
ssl.key.location: "private_key.pem"
ssl.key.password: "XXXXXXX"
schema_registry_url: "http://localhost:8081"
schema_registry_config:
# See https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#confluent_kafka.schema_registry.SchemaRegistryClient
# Most of these config keys are optional.
ssl.ca.location: "certificate_ca.pem"
ssl.certificate.location: "certificate.pem"
ssl.key.location: "private_key.pem"
ssl.key.password: "XXXXXXX"
basic.auth.user.info: "user:secret"