Help Center/
MapReduce Service/
Component Operation Guide (LTS)/
Using Flume/
Enterprise-Class Enhancements of Flume/
Configuring Flume to Connect to Kafka in Security Mode
Updated on 2024-10-25 GMT+08:00
Configuring Flume to Connect to Kafka in Security Mode
This section describes how to connect to Kafka using the Flume client in security mode.
- Create a jaas.conf file and save it to ${Flume client installation directory} /conf. The content of the jaas.conf file is as follows:
KafkaClient { com.sun.security.auth.module.Krb5LoginModule required useKeyTab=true keyTab="/opt/test/conf/user.keytab" principal="flume_hdfs@<System domain name>" useTicketCache=false storeKey=true debug=true; };
Set keyTab and principal based on site requirements. The configured principal must have certain kafka permissions.
- Configure services. Set the port number of kafka.bootstrap.servers to 21007, and set kafka.security.protocol to SASL_PLAINTEXT.
- If the domain name of the cluster where Kafka is located is changed, change the value of -Dkerberos.domain.name in the flume-env.sh file in ${Flume client installation directory} /conf/ based on the site requirements.
- Upload the configured properties.properties file to ${Flume client installation directory} /conf.
Parent topic: Enterprise-Class Enhancements of Flume
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot