Skip to content
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

Failing to connect to GSSAPI/SSL cluster #191

Open
sappo opened this issue Oct 24, 2019 · 2 comments
Open

Failing to connect to GSSAPI/SSL cluster #191

sappo opened this issue Oct 24, 2019 · 2 comments

Comments

@sappo
Copy link

sappo commented Oct 24, 2019

Hi,
I'm trying to connect to a GSSAPI cluster with SSL. Doing so results in the following error:

 Error Failed create new KafkaAdminClient (show more)

    org.apache.kafka.common.KafkaException thrown at org.apache.kafka.clients.admin.KafkaAdminClient::createInternal -> Failed create new KafkaAdminClient
    java.lang.IllegalArgumentException thrown at org.apache.kafka.common.security.JaasConfig::loginModuleControlFlag -> Login module control flag is not available in the JAAS config

I use the following jaas configuration:

KafkaClient {
  com.sun.security.auth.module.Krb5LoginModule required
  serviceName=kafka
  useKeyTab=true
  storeKey=true
  useTicketCache=false
  doNotPrompt=true
  client=true
  keyTab="[hidden]"
  principal="[hidden]";
};
Client {
  com.sun.security.auth.module.Krb5LoginModule required
  useKeyTab=true
  storeKey=true
  useTicketCache=false
  doNotPrompt=true
  client=true
  keyTab="[hidden]"
  principal="[hidden]";
};
@rohitrajeshsharma
Copy link

rohitrajeshsharma commented Aug 12, 2021

same issue, @Crim any update?

Error connecting to cluster: Failed to create new KafkaAdminClient (show more)
java.lang.IllegalArgumentException thrown at org.apache.kafka.common.security.JaasConfig::loginModuleControlFlag -> Login module control flag is not available in the JAAS config

It should pick the Login module passed in jass conf.

@Crim
Copy link
Collaborator

Crim commented Aug 12, 2021

I believe this error occurs when the Kafka library is unable to properly parse your JAAS configuration.

How confident are you that the value you provided is correctly formatted? If you're pretty sure its correct, it may be possible that the formatting is getting bungled somewhere between being provided to the webui and being passed to the underlying kafka library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants