zookeeper codis-admin提示[error]: [Remote Error] topom is not online

前端之家收集整理的这篇文章主要介绍了zookeeper codis-admin提示[error]: [Remote Error] topom is not online前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

用codis-admin工具总是显示dashboard调用失败

错误信息如下:

codis-admin --dashboard=192.168.122.1:18080 --create-proxy -x 192.168.122.1:11080
2018/11/08 17:02:54 dashboard.go:369: [PANIC] call rpc create-proxy to dashboard 192.168.122.1:18080 Failed
[error]: [Remote Error] topom is not online
[stack]: 
    2   /opt/gowork/src/github.com/CodisLabs/codis/cmd/admin/dashboard.go:369
            main.(*cmdDashboard).handleProxyCommand
    1   /opt/gowork/src/github.com/CodisLabs/codis/cmd/admin/dashboard.go:52
            main.(*cmdDashboard).Main
    0   /opt/gowork/src/github.com/CodisLabs/codis/cmd/admin/main.go:82
            main.main
        ... ...


解决办法

>>> codis-admin --remove-lock --product=codis-testX --zookeeper=192.168.122.1:2181
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - zkclient setup new connection to 192.168.122.1:2181
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Connected to 192.168.122.1:2181
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Authenticated: id=72057756374794242, timeout=40000
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Re-submitting `0` credentials after reconnect
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Recv loop terminated: err=EOF
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Send loop terminated: err=<nil>
[1]-  Exit 1                  codis-dashboard --ncpu=1 --config=/etc/codis/codis-dashboard/dashboard.toml --log=/usr/local/codis/logs/dashboard.log --log-level=warn

注意:

--product=对应的参数是zookeeper的product_name

--zookeeper对应的参数是zookeeper的监听的端口


猜你在找的Redis相关文章