2 回答

TA貢獻(xiàn)2065條經(jīng)驗(yàn) 獲得超14個(gè)贊
您需要在注冊(cè)連接器時(shí)在 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貢獻(xiàn)1831條經(jīng)驗(yàn) 獲得超10個(gè)贊
此錯(cuò)誤表明 jaas 配置對(duì)您的 kafka 客戶端不可見(jiàn)。要解決此問(wèn)題,您可以導(dǎo)出以下變量:
export KAFKA_OPTS="-Djava.security.auth.login.config=path/to/jaas.conf"
添加回答
舉報(bào)