Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用jboss部署应用时,aliware-kafka接入注意项 #13

Closed
xuyang0928 opened this issue Nov 23, 2017 · 0 comments
Closed

使用jboss部署应用时,aliware-kafka接入注意项 #13

xuyang0928 opened this issue Nov 23, 2017 · 0 comments

Comments

@xuyang0928
Copy link

xuyang0928 commented Nov 23, 2017

需要在jboss下standalone.xml配置文件中,添加:

<security-domain name="KafkaClient" cache-type="default">
<authentication>
<login-module code="org.apache.kafka.common.security.plain.PlainLoginModule" flag="required">
<module-option name="username" value="xxxx"/>
<module-option name="password" value="xxxx"/>
</login-module>
</authentication>
</security-domain>

注:username为accessKey、password为secretkey后10位,且此时需要在代码中将sasl_mechanism设为PLAIN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant