【发布时间】:2022-06-22 17:42:26
【问题描述】:
我使用 OpenJDK11 运行 Gradle 构建,尝试获取 kafka-client 和其他包,但由于与 TLS 相关的握手错误而失败。错误如下所示:
Could not download kafka-clients-6.2.0-ccs.jar (org.apache.kafka:kafka-clients:6.2.0-ccs)
Could not get resource 'https://packages.confluent.io/maven/org/apache/kafka/kafka-clients/6.2.0-ccs/kafka-clients-6.2.0-ccs.jar'.
Could not GET 'https://packages.confluent.io/maven/org/apache/kafka/kafka-clients/6.2.0-ccs/kafka-clients-6.2.0-ccs.jar'.
The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3).
You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/6.8.3/userguide/build_environment.html#gradle_system_properties
Received fatal alert: handshake_failure
JDK 是 OpenJDK-11。
【问题讨论】:
标签: java maven gradle apache-kafka confluent-platform