Tal Sheldon
09/20/2023, 3:21 PMCREATE TABLE table_name ( ... ) WITH ( 'connector' = 'kafka' .... )
I’m reading from Confluent Kafka with security protocol:
'properties.sasl.jaas.config' = 'org.apache.kafka.common.security.plain.PlainLoginModule required username="xxx" password="xxx";'
The API Keys are in the DDL. I’d like to avoid that, How can I create this table with DDL without specifying these secret configs in it?
Ideally I could inject these secret configs from in-code variables (fetched from secure place).Elizaveta Batanina
09/20/2023, 3:57 PMTableDescriptor.for_connector('kafka')
.schema(table_schema)
.option('topic', kafka_topic_name)
.option('properties.bootstrap.servers', bootstrap_server)
#other options
.build()
)
Tal Sheldon
09/21/2023, 9:24 AMTableDescriptor.forConnector("kafka")
.schema(schema)
.option('topic", ..)
Thanks!