找不到WSO2 EI611 Kafka连接器错误jaas.conf [英] WSO2 EI611 Kafka connector error jaas.conf not found

查看:135
本文介绍了找不到WSO2 EI611 Kafka连接器错误jaas.conf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

带有kafka连接器的EI611最新抛出错误:

EI611 with kafka connector latest throwing error :

org.apache.kafka.common.KafkaException:加载时发生异常Zookeeper JAAS登录上下文客户端"....造成原因:java.lang.SecurityException:java.io.IOException:C:\ WSO2EI〜1.1 \ bin .. \ repository \ conf \ identity \ jaas.conf(没有这样的文件或目录)

org.apache.kafka.common.KafkaException: Exception while loading Zookeeper JAAS login context 'Client' . . . . Caused by: java.lang.SecurityException: java.io.IOException: C:\WSO2EI~1.1\bin..\repository\conf\identity\jaas.conf (No such file or directory)

此错误也是由其他人发布的: wso2入站端点-Kafka使用者

This error was posted by someone else too : wso2 Inbound endpoint - Kafka consumer

有人找到解决方案吗?你知道怎么解决吗?

Does anybody find the solution? Do you know how to fix?

推荐答案

如果您需要在没有安全性的情况下配置Kafka,建议的版本为0.8.1.1.

从Kafka 0.9版开始,他们引入了带有SSL和SASL的Kafka安全机制,该机制将通过JAAS进行配置.因此,在使用WSO2产品(EI,DAS,CEP)配置Kafka时,您需要将此配置文件(jaas.conf)添加到/repository/conf/identity.

From Kafka version 0.9 onwards, they have introduced Kafka security mechanism with SSL and SASL, which will be configured via 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产品充当Kafka客户端,并且jaas.conf中的配置将用于登录到kafka服务器.请遵循Kafka安全性文档[1]来配置服务器和客户端的安全性.

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. Please follow the Kafka security documentation [1] for configuring security for server and client.

为SASL/纯文本配置的jaas.conf文件的示例内容.

Example content for jaas.conf file which is configured for SASL/ Plaintext.

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";
};

请注意,kafka 0.9仅支持SASL/Kerberos身份验证.请仔细阅读与您的Kafka版本相关的Kafka安全文档,并进行正确配置.

Please note that kafka 0.9 supports only SASL/Kerberos authentication. Please carefully follow the Kafka security documentation related to your Kafka version and configure it properly.

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

这篇关于找不到WSO2 EI611 Kafka连接器错误jaas.conf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆