2 回答
TA贡献2065条经验 获得超13个赞
您需要在注册连接器时在 JSON 正文中添加 SSL 属性:
database.history.producer.security.protocol=SSL
database.history.producer.ssl.keystore.location=/var/private/ssl/kafka.server.keystore.jks
database.history.producer.ssl.keystore.password=test1234
database.history.producer.ssl.truststore.location=/var/private/ssl/kafka.server.truststore.jks
database.history.producer.ssl.truststore.password=test1234
database.history.producer.ssl.key.password=test1234
database.history.consumer.security.protocol=SSL
database.history.consumer.ssl.keystore.location=/var/private/ssl/kafka.server.keystore.jks
database.history.consumer.ssl.keystore.password=test1234
database.history.consumer.ssl.truststore.location=/var/private/ssl/kafka.server.truststore.jks
database.history.consumer.ssl.truststore.password=test1234
database.history.consumer.ssl.key.password=test1234
TA贡献1831条经验 获得超10个赞
此错误表明 jaas 配置对您的 kafka 客户端不可见。要解决此问题,您可以导出以下变量:
export KAFKA_OPTS="-Djava.security.auth.login.config=path/to/jaas.conf"
添加回答
举报