org.apache.kafka.common.errors.IllegalSaslStateException: Unexpected handshake request with client mechanism PLAIN, enabled mechanisms are [] [2018-12-17 08:45:15,457] ERROR [Producer clientId=console-producer] Connection to node -1 (d9cd45c62e86.br1/172.168.0.5:9092) failed authentication du...
Kafka中SASL/PLAIN的默认实现在JAAS配置文件中指定用户名和密码,如下所示。从Kafka 2.0版开始,可以通过使用配置选项sasl.server.callback.handler.class和sasl.client.callback.handler.class配置自己的回调处理程序来从外部源获取用户名和密码,从而避免在磁盘上存储明文密码。 在生产系统中,外部认证服务器可以实现密码认证。
# security - KAFKA_CLIENT_USERS=vuser - KAFKA_CLIENT_PASSWORDS=vuserpwd123 - KAFKA_CFG_SASL_MECHANISM_CONTROLLER_PROTOCOL=PLAIN - KAFKA_CONTROLLER_USER=vuser - KAFKA_CONTROLLER_PASSWORD=vuserpwd123 - KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL=PLAIN - KAFKA_INTER_BROKER_USER=vuser - KAFKA_IN...
用来配置客户端Admin Client启动配置,只在--bootstrap-server 同时使用时候生效; 例如:设置请求的超时时间 --command-config config/producer.proterties; 然后在文件中配置 request.timeout.ms=300000 1.2.删除Topic bin/kafka-topics.sh --bootstrap-server localhost:9092 --delete --topic test 支持正则表达式匹...
用来配置客户端Admin Client启动配置,只在–bootstrap-server 同时使用时候生效; 例如:设置请求的超时时间 --command-config config/producer.proterties; 然后在文件中配置 request.timeout.ms=300000 1.2.删除Topic bin/kafka-topics.sh --bootstrap-server localhost:9092 --delete --topic test 支持正则表达式匹...
--command-config <String: command 文件路径> 用来配置客户端Admin Client启动配置,只在–bootstrap-server 同时使用时候生效; 例如:设置请求的超时时间 --command-config config/producer.proterties; 然后在文件中配置 request.timeout.ms=300000 1.2.删除Topic bin/kafka-topics.sh --bootstrap-server localhost:...
znode: ${kafka_rootdir/config/users/<default>; value: {"version":1,"config":{"producer_byte_rate":"5242880","consumer_byte_rate":"5242880"}} #3. 配置client-id。例如,”clientB”的配额是2MB/sec,其它clientid的默认配额是1MB/sec。
KAFKA_CLIENT_PASSWORDS: Passwords for the users specified atKAFKA_CLIENT_USERS. Separated by commas. Default:bitnami KAFKA_CFG_MAX_PARTITION_FETCH_BYTES: The maximum amount of data per-partition the server will return. Default: 1048576 KAFKA_CFG_MAX_REQUEST_SIZE: The maximum size of a request ...
KafkaClient { org.apache.kafka.common.security.plain.PlainLoginModule required username="admin"password="admin"; }; Client { org.apache.zookeeper.server.auth.DigestLoginModule required username="admin"password="admin"; }; 这个文件是客户端连接Broker使用的,username和password是用来配置客户端连接broker的...
将kafka-oauth-client 作为& lt;dependency > 添加到 Maven 项目的 pom.xml 文件中。 <dependency> <groupId>io.strimzi</groupId> <artifactId>kafka-oauth-client</artifactId> <version>0.14.0.redhat-00006</version> </dependency> 构建Maven 项目,将 OAuth 2.0 依赖项添加到项目中。