disconf zookeeper 为空

花羽 2018-08-23 02:11:33

查看disconf的日志,zk明明连接成功啊,为什么在zk下没信息呢,我用zkCli.sh登录。/disconf也是空。希望哪位大神可以帮帮看看,谢谢
(zk版本3.3.6跟pom文件版本相同)

zk配置

hosts=xx.:2181
# zookeeper\u7684\u524D\u7F00\u8DEF\u5F84\u540D
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: localhost:2181(CONNECTED) 0] ls /disconf
[]
[zk: localhost:2181(CONNECTED) 1]





...全文
246 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
花羽 2018-08-24
  • 打赏
  • 举报
回复
zookeeper host问题 127.0.0.1 客户端一直连接的本地zk。 还有记得端口防火墙要打开

50,545

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧