我有两台运行activeMQ的服务器,一台是主服务器,另一台是slave,通过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 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";
};
我的"用户名"和#34;密码"在' ../../ conf / activemq.xml'中配置通过" simpleAuthenticationPlugin",而不是' ../../ conf / login.config'
有人知道我上面的警告吗?
由于
答案 0 :(得分:-1)
使zookeeper
客户端版本与zookeeper
服务器版本相同:
zookeeper client jar location:
[ActiveMQ]/lib/optional/zookeeper.jar