shulieTech / Takin

Takin is an Java-based, open-source system designed to measure online environmental performance test for full-links, Especially for microservices. Through Takin, middlewares and applications can identify real online traffic and test traffic, ensure that they enter the right databases.
Apache License 2.0
1.31k stars 330 forks source link

启动应用:Kafka生产者认证Kerberos出现Could not find a 'KafkaClient' entry in the JAAS configuration. #99

Open wu-zhishuai opened 2 years ago

wu-zhishuai commented 2 years ago

问题描述:正常启动应用,takin上也没有问题,探针日志也正常 但是,应用服务报错:Caused by: java.lang.IllegalArgumentException: Could not find a 'KafkaClient' entry in the JAAS configuration. System property 'java.security.auth.login.config' is /tmp/root.jaas.conf 原因定位:应用所用kafka进行了生产者认证Kerberos 参考办法:在Tomcat启动参数增加.jaas.conf文件路径 来自简书大神[https://www.jianshu.com/p/1c986a48edd5?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation]

待验证该办法正确性,暂做记录和给遇到同问题的伙伴停供思路