- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Connecting third party tool to Secure Kafka cluster from outside
- Labels:
-
Apache Kafka
Created ‎09-15-2016 11:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Guys,
We have setup Kerberized cluster (HDP 2.4.x) and have setup Kafka Broker(0.9.x) with SASL (kerberization).
What are the steps required to connect third party tool (producers/publishers) to connect to Kafka?
Going through the link : https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_secure-kafka-ambari/content/ch_secure-ka...
What I understand is : this tool needs access to JAAS.conf file. For now I've copied the /usr/hdp/current/kafka-broker/config/kafka_client_jaas.conf and shared with the third party tool and kept on the classpath.
Do we need anything else also in place?
Regards,
SS
Created ‎09-15-2016 12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kafka's documentation explains how to configure client's for secure connections with SASL:
http://kafka.apache.org/documentation.html#security_sasl_clientconfig
You need to set a system property on your producer/consumer application to specify the JAAS file:
-Djava.security.auth.login.config=/etc/kafka/kafka_client_jaas.conf
Created ‎09-15-2016 11:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Smart Solutions could you please check if this article is of any help for you:
Created ‎09-15-2016 12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kafka's documentation explains how to configure client's for secure connections with SASL:
http://kafka.apache.org/documentation.html#security_sasl_clientconfig
You need to set a system property on your producer/consumer application to specify the JAAS file:
-Djava.security.auth.login.config=/etc/kafka/kafka_client_jaas.conf
Created ‎09-15-2016 03:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks guys,
The missing bit was Kerberbos libraries on the third party machine where we are running the publishing application.
Thanks,
SS
Created ‎10-20-2017 01:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to implement similar thing. I am trying to connect to kafka (0.10) from java producer program outside edge node. I tested my produce program in edge node it is working. But it is not working outside edge node. I have valid kerberos ticket outside edge node and passed jaas_conf file? Can you explain your approach or any example you took as reference.
