Kafka Zookeeper security

前提是你 提交于 2019-12-10 18:06:02

问题


I am using Kafka Version 0.10.2.0. Is there a way to secure communication between Zookeper Client i.e ZkClient and zookeper server with SSL. I found some way to do through SASL but i want it through SSL.


回答1:


Zookeeper 3.5 includes SSL support but it is still in alpha so Kafka doesn't yet support it. The highest supported version is 3.4 which only includes sasl.

Ref: https://issues.apache.org/jira/browse/ZOOKEEPER-1000




回答2:


This task can still be achieved by a simple workaround mentioned in the steps below;

  1. Install zookeeper-3.5.1-alpha (to use the .jar files. version 3.5+ can be used)
  2. Replace default zookeeper*.jar with /zookeeper-3.5.1-alpha/zookeeper-3.5.1-alpha.jar in <kafka-installation-folder>\libs
  3. Copy /zookeeper-3.5.1-alpha/lib/netty-3.7.0.Final.jar into <kafka-installation-folder>\libs
  4. Relevant changes to enable SSL on Zookeeper (https://cwiki-test.apache.org/confluence/display/ZOOKEEPER/ZooKeeper+SSL+User+Guide)


来源:https://stackoverflow.com/questions/43447220/kafka-zookeeper-security

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!