无法访问带有zookeeper的ActiveMQ复制的levelDB?

时间:2015-06-25 09:06:03

标签: activemq apache-zookeeper

我有3台动物园管理员机器和3台activemq机器 这是配置    饲养员:
滚动时间= 2000
initLimit = 10
syncLimit = 2
DATADIR =的/ var /动物园管理员/数据
CLIENTPORT = 2181
server.153 = 192.168.62.153:2888:3888
server.156 = 192.168.62.156:2888:3888
server.158 = 192.168.62.158:2888:3888
   的ActiveMQ:

<replicatedLevelDB 
    directory="/opt/apache-activemq-5.11.1/data/leveldb"
    replicas="3"
    bind="tcp://0.0.0.0"                                          
    zkAddress="192.168.62.153:2181,192.168.62.156:2181,192.168.62.158:2181"
    hostname="192.168.62.153"
    zkPath="/opt/zookeeper/leveldb-stores"
    sync="local_disk"
/>

首先,我启动了三台zookeeper机器,然后启动了三台activemq机器 动物园管理员机器显示一个领导和两个花 但是当我查看activemq webconsole http://ip:8161时,无论哪个activemq机器都无法访问它。
日志中没有错误消息,但是出现如下警告:

  

SASL配置失败:javax.security.auth.login.LoginException:没有名为&#39;客户端&#39;的JAAS配置部分在指定的JAAS配置文件中找到:&#39; /opt/apache-activemq-5.11.1/conf/login.config'。如果Zookeeper服务器允许,将继续连接到没有SASL身份验证的Zookeeper服务器。 | org.apache.zookeeper.ClientCnxn
  |主SendThread。

请帮我解决问题。

1 个答案:

答案 0 :(得分:0)

此警告不得干扰您与zk服务器的通信。您可以阅读该通信

"Will continue connection to Zookeeper server without SASL"

稍后在您的日志中,您应该会看到以下几行显示通信正常:

2016-05-13 17:16:50,867 | WARN  | unprocessed event state: AuthFailed | org.apache.activemq.leveldb.replicated.groups.ZKClient | main-EventThread
2016-05-13 17:16:50,878 | INFO  | Socket connection established to zkserver.stuff.com/192.168.1.xxxx:2181, initiating session | org.apache.zookeeper.ClientCnxn | main-SendThread(server.yourdomain.com:2181)
2016-05-13 17:16:50,894 | INFO  | Session establishment complete on server zkserver.stuff.com/192.168.1.xxxx:2181, sessionid = 0x154aa93a6900001, negotiated timeout = 4000 | org.apache.zookeeper.ClientCnxn | main-SendThread(zkserver.stuff.com/192.168.1.xxxx:2181)