Guest User

Untitled

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