[ https://issues.apache.org/jira/browse/KAFKA-3102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15523330#comment-15523330 ]
SOFT COMPANY - NEJJAR, Azeddine commented on KAFKA-3102: -------------------------------------------------------- Hello, Have you find any solution for Kafka connection error. I would like to configure Kafka to connect on sasl zookeeper. There in my error message : Using builtin default etypes for default_tkt_enctypes default etypes for default_tkt_enctypes: 17 16 23 1 3. [Krb5LoginModule] authentication failed Checksum failed [2016-09-26 16:30:13,159] WARN SASL configuration failed: javax.security.auth.login.LoginException: Checksum failed Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it. (org.apache.zookeeper.ClientCnxn) Thanks a lot for your help, Sincerely, Azeddine ________________________________ L'intégrité de ce message n'étant pas assurée sur internet, la société expéditrice ne peut être tenue responsable de son contenu ni de ses pièces jointes. Toute utilisation ou diffusion non autorisée est interdite. Si vous n'êtes pas destinataire de ce message, merci de le détruire et d'avertir l'expéditeur. The integrity of this message cannot be guaranteed on the Internet. The company that sent this message cannot therefore be held liable for its content nor attachments. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. > Kafka server unable to connect to zookeeper > ------------------------------------------- > > Key: KAFKA-3102 > URL: https://issues.apache.org/jira/browse/KAFKA-3102 > Project: Kafka > Issue Type: Bug > Components: security > Environment: RHEL 6 > Reporter: Mohit Anchlia > > Server disconnects from the zookeeper with the following log, and logs are > not indicative of any problem. It works without the security setup however. > I followed the security configuration steps from this site: > http://docs.confluent.io/2.0.0/kafka/sasl.html > In here find the list of principals, logs and Jaas file: > 1) Jaas file > KafkaServer { > com.sun.security.auth.module.Krb5LoginModule required > useKeyTab=true > storeKey=true > keyTab="/mnt/kafka/kafka/kafka.keytab" > principal="kafka/10.24.251....@example.com"; > }; > Client { > com.sun.security.auth.module.Krb5LoginModule required > useKeyTab=true > storeKey=true > keyTab="/mnt/kafka/kafka/kafka.keytab" > principal="kafka/10.24.251....@example.com"; > }; > 2) Principles from krb admin > kadmin.local: list_principals > K/m...@example.com > kadmin/ad...@example.com > kadmin/chang...@example.com > kadmin/ip-10-24-251-175.us-west-2.compute.inter...@example.com > kafka/10.24.251....@example.com > krbtgt/example....@example.com > [2016-01-13 16:26:00,551] INFO starting (kafka.server.KafkaServer) > [2016-01-13 16:26:00,557] INFO Connecting to zookeeper on localhost:2181 > (kafka.server.KafkaServer) > [2016-01-13 16:27:30,718] FATAL Fatal error during KafkaServer startup. > Prepare to shutdown (kafka.server.KafkaServer) > org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to > zookeeper server within timeout: 6000 > at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223) > at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:155) > at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:129) > at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89) > at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71) > at kafka.server.KafkaServer.initZk(KafkaServer.scala:278) > at kafka.server.KafkaServer.startup(KafkaServer.scala:168) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-13 16:27:30,721] INFO shutting down (kafka.server.KafkaServer) > [2016-01-13 16:27:30,727] INFO shut down completed (kafka.server.KafkaServer) > [2016-01-13 16:27:30,728] FATAL Fatal error during KafkaServerStartable > startup. Prepare to shutdown (kafka.server.KafkaServerStartable) > org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to > zookeeper server within timeout: 6000 > at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223) > at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:155) > at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:129) > at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89) > at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71) > at kafka.server.KafkaServer.initZk(KafkaServer.scala:278) > at kafka.server.KafkaServer.startup(KafkaServer.scala:168) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-13 16:27:30,729] INFO shutting down (kafka.server.KafkaServer) > "server.log" 156L, 6404C > -- This message was sent by Atlassian JIRA (v6.3.4#6332)