activeMQ主/从SASL配置
我有两台服务器运行activeMQ,一台是主服务器,另一台是从服务器,通过zookeeper 我运行以下命令:activeMQ主/从SASL配置,activemq,sasl,Activemq,Sasl,我有两台服务器运行activeMQ,一台是主服务器,另一台是从服务器,通过zookeeper 我运行以下命令: Downloads\apache-activemq-5.9.1-bin\apache-activemq-5.9.1\bin\win64>activemq.bat 有人警告说: jvm 1 | WARN | SASL configuration failed: javax.security.auth.login.LoginException: No JAAS config
Downloads\apache-activemq-5.9.1-bin\apache-activemq-5.9.1\bin\win64>activemq.bat
有人警告说:
jvm 1 | WARN | SASL configuration failed: javax.security.auth.login.LoginException: No JAAS configuration section named 'Client' was found in specified JAAS configuration file: '../../conf/login.config'. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it.
jvm 1 | INFO | Opening socket connection to server "server1"
jvm 1 | WARN | unprocessed event state: AuthFailed
jvm 1 | INFO | Socket connection established to blabla.local/10.112.0.17:2181, initiating session
jvm 1 | INFO | Session establishment complete on server blabla.local/10.112.0.17:2181, sessionid = 0x14651b3478a0005, negotiated timeout = 4000
我的“../../conf/login.config”看起来像:
activemq {
org.apache.activemq.jaas.PropertiesLoginModule required
org.apache.activemq.jaas.properties.user="users.properties"
org.apache.activemq.jaas.properties.group="groups.properties";
};
我的用户名和密码是通过simpleAuthenticationPlugin在“../../conf/activemq.xml”中配置的,而不是在“../../conf/login.config”中配置的
有人知道我上面的警告吗
谢谢使zookeeper客户端版本与zookeeper服务器版本相同:
zookeeper client jar location:
[ActiveMQ]/lib/optional/zookeeper.jar