yuweisung opened a new issue, #17442: URL: https://github.com/apache/pulsar/issues/17442
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Version 2.9 and 2.10 ### Minimal reproduce step When turning zookeeper TLS on, NIO doesn't support TLS, and the "pulsar zookeeper-shell" script throws "not an SSL/TLS record" exception, and zk server log reports "io.netty.handler.codec.DecoderException: NotSslRecordException. ### What did you expect to see? "pulsar zookeeper-shell -server zk:2281 --run-once "ls /"" should return without exception. ### What did you see instead? "pulsar zookeeper-shell -server zk:2281 --run-once "ls /"" script throws "not an SSL/TLS record" exception, and zk server log reports "io.netty.handler.codec.DecoderException: NotSslRecordException. ### Anything else? According to zookeeper guide, when turning on secured zk, client will need to use Netty context to communicate with zk server because the default context NIO doesn't support TLS/SSL. exec $JAVA $OPTS -Dzookeeper.clientCnxnSocket="org.apache.zookeeper.ClientCnxnSocketNetty" -Dzookeeper.client.secure=true org.apache.zookeeper.ZooKeeperMain $@ ### Are you willing to submit a PR? - [X] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
