I want to stream a kafka topic from Glue job but I got the following error
StreamingQueryException: Not authorized to access topics: [topic_name]
This my current script
# Script generated for node Kafka Stream
dataframe_KafkaStream_node1 = glueContext.create_data_frame.from_options(
connection_type="kafka",
connection_options={
"connectionName": "corp_cli_kafka_connection",
"classification": "json",
"startingOffsets": "latest",
"topicName": "topic_name",
"inferSchema": "true",
"typeOfData": "kafka"
},
transformation_ctx="dataframe_KafkaStream_node1",
)
How to set the SASL JAAS config ?
"kafka.bootstrap.servers": "server_url:9092",
"kafka.sasl.jaas.config": "org.apache.kafka.common.security.plain.PlainLoginModule required username=XXXXXXXXXX password=XXXXXXXXXXXX;",
"kafka.sasl.mechanism": "PLAIN",
"kafka.security.protocol": "SASL_SSL"