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

No valid credentials found error #2

Open
subbaraodna opened this issue Jul 6, 2022 · 1 comment
Open

No valid credentials found error #2

subbaraodna opened this issue Jul 6, 2022 · 1 comment

Comments

@subbaraodna
Copy link

Hi,

I am getting below error while running producer, implemented kafka security as per this code. Can I get help on to resolve this issue. Any help on this would be appreciated. The code is on my google cloud,, can be available for workign session too. This would help to resolve one of my blocker.

ERROR [Producer clientId=console-producer] Connection to node -1 failed authentication due to: An error: (java.security.PrivilegedActionException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Server not found in Kerberos database (7) - UNKNOWN_SERVER)]) occurred when evaluating SASL token received from the Kafka Broker. This may be caused by Java's being unable to resolve the Kafka Broker's hostname correctly. You may want to try to adding '-Dsun.net.spi.nameservice.provider.1=dns,sun' to your client's JVMFLAGS environment. Users must configure FQDN of kafka brokers when authenticating using SASL and socketChannel.socket().getInetAddress().getHostName() must match the hostname in principal/hostname@realm Kafka Client will go to AUTHENTICATION_FAILED state. (org.apache.kafka.clients.NetworkCl

Regards
Subbarao

@dreamcoin1998
Copy link

Hi,

I am getting below error while running producer, implemented kafka security as per this code. Can I get help on to resolve this issue. Any help on this would be appreciated. The code is on my google cloud,, can be available for workign session too. This would help to resolve one of my blocker.

ERROR [Producer clientId=console-producer] Connection to node -1 failed authentication due to: An error: (java.security.PrivilegedActionException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Server not found in Kerberos database (7) - UNKNOWN_SERVER)]) occurred when evaluating SASL token received from the Kafka Broker. This may be caused by Java's being unable to resolve the Kafka Broker's hostname correctly. You may want to try to adding '-Dsun.net.spi.nameservice.provider.1=dns,sun' to your client's JVMFLAGS environment. Users must configure FQDN of kafka brokers when authenticating using SASL and socketChannel.socket().getInetAddress().getHostName() must match the hostname in principal/hostname@realm Kafka Client will go to AUTHENTICATION_FAILED state. (org.apache.kafka.clients.NetworkCl

Regards Subbarao

have you solved this problem? how to solve this problem?

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

2 participants