datahub/metadata-ingestion/examples/recipes/secured_kafka.dhub.yaml

46 lines
2.1 KiB
YAML
Raw Permalink Normal View History

# see https://docs.datahub.com/docs/generated/ingestion/sources/kafka for complete documentation
2021-02-11 15:00:34 -08:00
source:
type: "kafka"
2021-02-12 12:05:41 -08:00
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
2021-02-11 15:00:34 -08:00
# see https://docs.datahub.com/docs/metadata-ingestion/sink_docs/datahub for complete documentation
2021-02-11 15:00:34 -08:00
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"