查看disconf的日志,zk明明连接成功啊,为什么在zk下没信息呢,我用zkCli.sh登录。/disconf也是空。希望哪位大神可以帮帮看看,谢谢
(zk版本3.3.6跟pom文件版本相同)
zk配置
hosts=xx.:2181
zookeeper_url_prefix=/disconf
redis配置
redis.group1.retry.times=2
redis.group1.client1.name=BeidouRedis1
redis.group1.client1.host=127.0.0.1
redis.group1.client1.port=6379
redis.group1.client1.timeout=5000
redis.group1.client1.password=foobared
redis.group1.client2.name=BeidouRedis2
redis.group1.client2.host=127.0.0.1
redis.group1.client2.port=6380
redis.group1.client2.timeout=5000
redis.group1.client2.password=foobared
redis.evictor.delayCheckSeconds=300
redis.evictor.checkPeriodSeconds=30
disconf日志
2018-08-21 14:45:05,252 [localhost-startStop-1] INFO com.github.knightliao.apollo.redis.RedisClient - New Jedis pool <client: BeidouRedis1> <server: 127.0.0.1:6379> object created. Connection pool will be initiated when calling.
2018-08-21 14:45:05,306 [localhost-startStop-1] INFO com.github.knightliao.apollo.redis.RedisClient - New Jedis pool <client: BeidouRedis2> <server: 127.0.0.1:6380> object created. Connection pool will be initiated when calling.
2018-08-21 14:45:06,695 [localhost-startStop-1-EventThread] INFO com.baidu.disconf.core.common.zookeeper.inner.ConnectionWatcher - zk SyncConnected
2018-08-21 14:45:06,695 [localhost-startStop-1] INFO com.baidu.disconf.core.common.zookeeper.inner.ConnectionWatcher - zookeeper: xx:2181 , connected.
2018-08-21 14:45:06,695 [localhosxxt-startStop-1] INFO com.baidu.disconf.core.common.zookeeper.ZookeeperMgr - zoo prefix: /disconf
2018-08-21 14:45:07,195 [localhost-startStop-1] INFO com.baidu.dsp.common.listener.ContextListener - start to load ContextListener
2018-08-21 14:45:07,195 [localhost-startStop-1] INFO com.baidu.dsp.common.listener.ContextListener - end of ContextListener
cd76af6e-7df5-4d1d-843f-43dbd45791c5 2018-08-21 14:45:17,616 [proScheduler-1] INFO com.baidu.disconf.web.tasks.impl.ConfigConsistencyMonitorServiceImpl - monitor disconf_demo rd 1_0_0_0
3231d457-a7e4-49ab-b979-4e8abf296a19 2018-08-21 14:45:31,514 [http-bio-8080-exec-8] INFO com.baidu.dsp.common.interceptor.login.LoginInterceptor - /api/zoo/zkdeploy
3231d457-a7e4-49ab-b979-4e8abf296a19 2018-08-21 14:45:31,521 [http-bio-8080-exec-8] INFO com.baidu.disconf.web.service.roleres.service.RoleResourceAspect - Accessing URL:/api/zoo/zkdeploy/, method:GET, UserId:6, RoleId:2, Is priviledged:true
3231d457-a7e4-49ab-b979-4e8abf296a19 2018-08-21 14:45:31,528 [http-bio-8080-exec-8] INFO com.baidu.disconf.web.web.zookeeper.controller.ZooController - ZkDeployForm [appId=2, version=1_0_0_0, envId=1]
3231d457-a7e4-49ab-b979-4e8abf296a19 2018-08-21 14:45:31,539 [http-bio-8080-exec-8] ERROR com.baidu.disconf.web.innerapi.zookeeper.impl.ZookeeperDriverImpl - Group /disconf/disconf_demo_1_0_0_0_rd does not exist
zk客户端查看
[zk: localhost:2181(CONNECTED) 0] ls /disconf
[]
[zk: localhost:2181(CONNECTED) 1]
问题描述
问题出现的平台版本及自己尝试过哪些方法
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)