whyyouhitme_
whyyouhitme_
采纳率65.7%
2018-11-27 10:07 阅读 440
已采纳

solr集群搭建的zookeeper和之前学dubbo时的zookeeper放在一个虚拟机

5

之前学dubbo时的zookeeper,和现在solr搭建集群的zookepper(把之前的复制了三份到/usr/local/solr-cloud下,命名后缀01、02、03),放在同一虚拟机没关系吧?
如果没关系,现在出现了问题。配置好三个zookeeper0x/data/myid,zookeeper0x/conf/zoo.cfg(其中zookeeper01的zoo.cfg端口和之前dubbo的端口都是2181,不知道这样行不行,zookeeper02,03则分别配置了2182,2183)。用批处理文件开启三个zookeeper后,只有第一个是standalone,(不是leader或follower),其余两个都是It is probably not running

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    wulinshishen 人生偌只如初见 2018-11-27 10:38

    我在同一台机器上测试了一下,正常的leader、follower,配置如下

    tickTime=2000
    initLimit=10
    syncLimit=5
    dataDir=/home/dataplat/zookeeper-3.4.10-instance1/data
    dataLogDir=/home/dataplat/zookeeper-3.4.10-instance1/logs
    clientPort=2181
    server.1=192.168.0.1:12188:13188

    server.2=192.168.0.1:12288:13288
    server.3=192.168.0.1:12388:13388

    tickTime=2000
    initLimit=10
    syncLimit=5
    dataDir=/home/dataplat/zookeeper-3.4.10-instance2/data
    dataLogDir=/home/dataplat/zookeeper-3.4.10-instance2/logs
    clientPort=2182
    server.1=192.168.0.1:12188:13188

    server.2=192.168.0.1:12288:13288
    server.3=192.168.0.1:12388:13388

    tickTime=2000
    initLimit=10
    syncLimit=5
    dataDir=/home/dataplat/zookeeper-3.4.10-instance3/data
    dataLogDir=/home/dataplat/zookeeper-3.4.10-instance3/logs
    clientPort=2183
    server.1=192.168.0.1:12188:13188

    server.2=192.168.0.1:12288:13288
    server.3=192.168.0.1:12388:13388

    点赞 评论 复制链接分享

相关推荐