第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

無(wú)法在啟用 SSL 的 Kafka 集群中注冊(cè) Debezium(Kafka-Connect)連接器

無(wú)法在啟用 SSL 的 Kafka 集群中注冊(cè) Debezium(Kafka-Connect)連接器

蝴蝶刀刀 2023-03-31 16:38:24
我正在嘗試在啟用 SSL 的 Kafka 集群中注冊(cè)一個(gè) MySql Debezium 連接器。我為此目的使用的卷曲是:curl -k -X POST -H "Accept:application/json"  -H "Content-Type:application/json" https://<IPADDRESS>:8083/connectors/  -d '{ "name": "test-eds-extactor-profile", "config": { "connector.class": "io.debezium.connector.mysql.MySqlConnector", "database.hostname": "<DBHOSTNAME>", "database.port": "3306", "database.user": "debezium", "database.password": "*****", "database.server.id": "1", "database.server.name": "MySQL-Database-Docker", "database.history.kafka.bootstrap.servers": "<IPADDRESS>:9094", "database.history.kafka.topic": "dbhistory.profile" , "include.schema.changes": "true", "table.whitelist": "test_eds_extraction_src_db_mock.profile", "database.history.producer.security.protocol": "SASL_PLAINTEXT", "database.history.producer.ssl.keystore.location": "path/to/server.jks", "database.history.producer.ssl.keystore.password": "******", "database.history.producer.ssl.truststore.location": "path/to//server.jks", "database.history.producer.ssl.truststore.password": "******", "database.history.producer.ssl.key.password": "******", "database.history.consumer.security.protocol": "SASL_PLAINTEXT", "database.history.consumer.ssl.keystore.location": "path/to/server.jks", "database.history.consumer.ssl.keystore.password": "******", "database.history.consumer.ssl.truststore.location": "path/to/server.jks", "database.history.consumer.ssl.truststore.password": "******", "database.history.consumer.ssl.key.password": "******" } }'
查看完整描述

2 回答

?
翻翻過(guò)去那場(chǎng)雪

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


查看完整回答
反對(duì) 回復(fù) 2023-03-31
?
慕哥6287543

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"


查看完整回答
反對(duì) 回復(fù) 2023-03-31
  • 2 回答
  • 0 關(guān)注
  • 202 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)