简体   繁体   English

找不到WSO2 EI611 Kafka连接器错误jaas.conf

[英]WSO2 EI611 Kafka connector error jaas.conf not found

EI611 with kafka connector latest throwing error : 带有kafka连接器的EI611最新抛出错误:

org.apache.kafka.common.KafkaException: Exception while loading Zookeeper JAAS login context 'Client' . org.apache.kafka.common.KafkaException:加载Zookeeper JAAS登录上下文'Client'时发生异常。 . . . Caused by: java.lang.SecurityException: java.io.IOException: C:\\WSO2EI~1.1\\bin..\\repository\\conf\\identity\\jaas.conf (No such file or directory) 引起原因:java.lang.SecurityException:java.io.IOException:C:\\ WSO2EI〜1.1 \\ bin .. \\ repository \\ conf \\ identity \\ jaas.conf(无此类文件或目录)

This error was posted by someone else too : wso2 Inbound endpoint - Kafka consumer 此错误也是由其他人发布的: wso2入站端点-Kafka使用者

Does anybody find the solution? 有人找到解决方案吗? Do you know how to fix? 你知道怎么解决吗?

If you need to configure Kafka without security, the recommonded version is 0.8.1.1. 如果您需要在没有安全性的情况下配置Kafka,建议的版本为0.8.1.1。

From Kafka version 0.9 onwards, they have introduced Kafka security mechanism with SSL and SASL, which will be configured via JAAS. 从Kafka 0.9版开始,他们引入了带有SSL和SASL的Kafka安全机制,该机制将通过JAAS进行配置。 So, when configuring Kafka with WSO2 Products (EI, DAS, CEP) you need to add this config file (jaas.conf) to /repository/conf/identity. 因此,在使用WSO2产品(EI,DAS,CEP)配置Kafka时,您需要将此配置文件(jaas.conf)添加到/ repository / conf / identity。

In this case, WSO2 product acts as the Kafka client and the configuration in the jaas.conf will be used to login to the kafka server. 在这种情况下,WSO2产品将充当Kafka客户端,并且jaas.conf中的配置将用于登录kafka服务器。 Please follow the Kafka security documentation [1] for configuring security for server and client. 请遵循Kafka安全文档[1]来配置服务器和客户端的安全性。

Example content for jaas.conf file which is configured for SASL/ Plaintext. 为SASL / Plaintext配置的jaas.conf文件的示例内容。

KafkaServer {
org.apache.kafka.common.security.plain.PlainLoginModule required
   username="kafka"
   password="kafka-secret"
   user_kafka="kafka-secret"
   user_ibm="ibm-secret";
};

KafkaClient {
org.apache.kafka.common.security.plain.PlainLoginModule required
  username="kafka"
  password="kafka-secret";
};

Please note that kafka 0.9 supports only SASL/Kerberos authentication. 请注意,kafka 0.9仅支持SASL / Kerberos身份验证。 Please carefully follow the Kafka security documentation related to your Kafka version and configure it properly. 请仔细阅读与您的Kafka版本相关的Kafka安全文档,并进行正确配置。

[1] http://kafka.apache.org/090/documentation.html#security_sasl [1] http://kafka.apache.org/090/documentation.html#security_sasl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM