Guest User

Untitled

a guest
Jul 25th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. [2018-07-25 12:22:27,156] ERROR SASL authentication with Zookeeper Quorum member failed: javax.security.sasl.SaslException: saslClient failed to initialize properly: it's null. (org.apache.zookeeper.ClientCnxn)
  2.  
  3. listeners=SASL_PLAINTEXT://:9092,SSL://:9093
  4.  
  5. security.inter.broker.protocol=SASL_PLAINTEXT
  6. sasl.mechanism.inter.broker.protocol=PLAIN
  7.  
  8. ssl.keystore.location=/some-path/server.keystore.jks
  9. ssl.keystore.password=password
  10. ssl.key.password=password
  11. ssl.truststore.location=/some-path/server.truststore.jks
  12. ssl.truststore.password=password
  13. ssl.client.auth=required
  14. # without the next 2 lines kafka works fine but with no ACL
  15. authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer
  16. super.users=User:CN=bob,OU=bob,O=bob,L=bob,ST=bob,C=il
  17. allow.everyone.if.no.acl.found=false
  18. sasl.enabled.mechanisms=PLAIN
  19.  
  20. authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
  21. #requireClientAuthScheme=sasl
  22. quorum.auth.enableSasl=true
  23. quorum.auth.learnerRequireSasl=true
  24. quorum.auth.serverRequireSasl=true
  25. #quorum.auth.learner.loginContext=QuorumLearner
  26. #quorum.auth.server.loginContext=QuorumServer
  27. #quorum.auth.kerberos.servicePrincipal=servicename/_HOST
  28. quorum.cnxn.threads.size=20
  29.  
  30. KafkaServer {
  31. org.apache.kafka.common.security.plain.PlainLoginModule required
  32. username="kafkabroker"
  33. password="kafkabroker-secret";
  34. };
  35.  
  36. Client {
  37. org.apache.zookeeper.server.auth.DigestLoginModule required
  38. userame="admin"
  39. password="admin";
  40. };
  41.  
  42. Server {
  43. org.apache.zookeeper.server.auth.DigestLoginModule required
  44. username="admin"
  45. password="admin";
  46. };
  47.  
  48. [2018-07-25 12:22:27,120] ERROR Exception while trying to create SASL client: java.lang.ArrayIndexOutOfBoundsException: 0 (org.apache.zookeeper.client.ZooKeeperSaslClient)
  49. [2018-07-25 12:22:27,121] INFO Opening socket connection to server localhost/127.0.0.1:2181. Will attempt to SASL-authenticate using Login Context section 'Client' (org.apache.zookeeper.ClientCnxn)
  50. [2018-07-25 12:22:27,132] INFO Socket connection established to localhost/127.0.0.1:2181, initiating session (org.apache.zookeeper.ClientCnxn)
  51. [2018-07-25 12:22:27,154] INFO Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x100007b700f0003, negotiated timeout = 6000 (org.apache.zookeeper.ClientCnxn)
  52. [2018-07-25 12:22:27,156] ERROR SASL authentication with Zookeeper Quorum member failed: javax.security.sasl.SaslException: saslClient failed to initialize properly: it's null. (org.apache.zookeeper.ClientCnxn)
  53. [2018-07-25 12:22:27,161] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
  54. kafka.zookeeper.ZooKeeperClientAuthFailedException: Auth failed either before or while waiting for connection
  55. at kafka.zookeeper.ZooKeeperClient.$anonfun$waitUntilConnected$3(ZooKeeperClient.scala:231)
  56. at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
  57. at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:250)
  58. at kafka.zookeeper.ZooKeeperClient.waitUntilConnected(ZooKeeperClient.scala:221)
  59. at kafka.zookeeper.ZooKeeperClient.<init>(ZooKeeperClient.scala:95)
  60. at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1548)
  61. at kafka.server.KafkaServer.createZkClient$1(KafkaServer.scala:348)
  62. at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:372)
  63. at kafka.server.KafkaServer.startup(KafkaServer.scala:202)
  64. at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:38)
  65. at kafka.Kafka$.main(Kafka.scala:75)
  66. at kafka.Kafka.main(Kafka.scala)
  67. [2018-07-25 12:22:27,163] INFO shutting down (kafka.server.KafkaServer)
  68. [2018-07-25 12:22:27,165] WARN (kafka.utils.CoreUtils$)
  69. java.lang.NullPointerException
  70. at kafka.server.KafkaServer.$anonfun$shutdown$6(KafkaServer.scala:572)
  71. at kafka.utils.CoreUtils$.swallow(CoreUtils.scala:85)
  72. at kafka.server.KafkaServer.shutdown(KafkaServer.scala:572)
  73. at kafka.server.KafkaServer.startup(KafkaServer.scala:329)
  74. at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:38)
  75. at kafka.Kafka$.main(Kafka.scala:75)
  76. at kafka.Kafka.main(Kafka.scala)
  77. [2018-07-25 12:22:27,173] INFO shut down completed (kafka.server.KafkaServer)
  78. [2018-07-25 12:22:27,174] ERROR Exiting Kafka. (kafka.server.KafkaServerStartable)
  79. [2018-07-25 12:22:27,177] INFO shutting down (kafka.server.KafkaServer)
Add Comment
Please, Sign In to add comment