canal里如何配置kafka密码认证

#登录canal server,修改配置文件,添加kafka密码认证信息

vi /opt/canal-server/conf/canal.properties

添加以下三行内容:

kafka.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required  username='admin'  password='密码';

kafka.sasl.mechanism=PLAIN

kafka.security.protocol=SASL_PLAINTEXT

#重启两台canal server

systemctl stop canal-server

systemctl start canal-server

#检查服务状态

systemctl status canal-server

你可能感兴趣的:(canal,canal)