-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting SASL_SSL Kafka Cluster #583
Comments
@tommyJimmy87 Thanks for reporting the issue! |
@tommyJimmy87 Are you trying to use Kerberos for authentication? If so, one of the following configs is needed:
It would be more helpful if you can share the configurations you are using. |
@becketqin We are not using kerberos... we are just using SASL_SSL with the username and password in the JAAS.. but apparently as @efeg said is not supported. |
@efeg I can take a look how complicate is to patch it. |
@tommyJimmy87 Hmm, CC should support all the mechanisms support by Kafka itself. Have you set |
Also, please make sure you are using the |
@becketqin Thx, here my config file :
And also I'm providing my JAAS file path in the KAFKA_OPTS env variable that should be added when CC runs. |
@becketqin The problem is just the KafkaAdminClient Configs, the ConsumerConf for example are created with the right values (jks.. password and jaas are present in the ConsumerConf but not in the KafkaAdminClient). |
@becketqin Uhm.. with the tag 0.1.39 is working actually.. earlier I was using 2.0.36 Tag... what's the different ? Master branch should be at the 0.1.39 right ? I guess it was a little bit confusing. |
@tommyJimmy87 Thanks for the update. This sounds like a bug in 2.0.36. But I could be wrong. @efeg would be more familiar with the diff between those two versions. |
@tommyJimmy87 The reason why the tag To support
^ So I suspect that all we need would be:
|
@efeg Ok as I thought. If you want I can contribute on this. |
@tommyJimmy87 Sure, we appreciate contributions! |
I've encountered the same issue with SASL_PLAINTEXT and sasl.mechanism=SCRAM-SHA-256: UPD: managed to fix this by adding |
@Sugaroverdose Sounds great! Would you consider creating a PR with the patch? |
@efeg i'll try to |
@tommyJimmy87 you may try latest migrate_to_kafka_2_0 branch, it should work in your case now |
I'm novice in adopting to cruise-contol using 2.029,trying with Sasl_ssl going by above discussion it looks I'm may not be able use it sasl_ssl |
@poyyi What is your Cruise Control Metric Jar configuration? |
@tommy on the kafka servers.. "2024" is sasl_ssl port CC property file |
I guess you are missing all the Cruise Control configs for Sasl SSL. Try with these also :
|
@jimmy sorry could not try immly on SASL_SSL (but tired with SSL which i run into some other issue described below ).. i have few queries on your suggestions for SASL_SSL 1)Above mentioned properties shld go into server.properties on brokers? PL note version I'm using: I ran with SSL pl find my setting and Exception I'm getting for Failures Success Exception: ---------Broker server.properties---------------- advertised.listeners=PLAINTEXT://bk1:2021,SASL_PLAINTEXT://bk1:2022,SSL://bk1:2023,SASL_SSL://bk1:2024 ############################# Log Basics ############################# log.dirs=/opt/app/workload/enabler/kafka_2.12-0.11.0.0/kafka-logs #####Cruise control setting############## |
@tommyJimmy87 ...did you get chance to look at my query |
I am facing the same issue. Can you please update on this ? |
Does cruise control support TLS SASL/Scram enabled Kafka secure cluster? |
I have the same issue using SASL_PLAINTEXT, CC not working on kerberized kafka cluster, i am using older commit of this repo: "repo_commit": "6e8f2ef0209903dc1036857edff1e1020058f02e" seems like AdminClientConfig does not fetch/load sasl.kereberos.service.name , it is null even if specified in cruise_control_jaas.conf and cruisecontrol.properties files (or kafka_opts)
i will try same procedure on the latest commit, will see if issue persist. |
switched to commit f23332a and cruisecontrol started without an issue.. here are some necessary configuration of cruisecontrol.properties
but cruisecontrol logs says
i have just setup cc parameters only on one broker yet. current broker configuration lines related to CC and kerberos are
so it is functional i guess. |
I'm using Security Protocol set to "SASL_SSL" which means I need to specify all the JKS and JAAS in order to connect to the Cluster. I'm providing those information through the property file, but I found out that when the KafkaAdminClient runs it gets wrong SSL configuration because of this :
I'm not using
SSL
butSASL_SSL
and I still need those properties to be set in the KafkaClientAdmin configurations.The class where i found that code portion is KafkaCruiseControlUtils.java.
This is the error I'm facing :
Tag Cruise Control version is 2.0.36. Kafka Version is 1.1.x.
The text was updated successfully, but these errors were encountered: