ireaderlab / zkdash Goto Github PK
View Code? Open in Web Editor NEWA dashboard for zookeeper and Qconf
License: Apache License 2.0
A dashboard for zookeeper and Qconf
License: Apache License 2.0
修改了配置文件中的use_conf=True
重启zkdash 点击配置管理 后台显示 node does not exists on Qconf agent:
agent 手动 get了一下 还是有如上错误
请问哪里配置不对?
另: 配置完zookeeper后 agent是否只能手动配置?
D 170109 13:38:47 connection:282] Sending request(xid=1173): GetChildren(path=u'/elastic-job-example-lite-spring/springSimpleJob/servers/10.65.128.186/trigger', watcher=None)
[D 170109 13:38:47 connection:352] Received error(xid=1173) NoAuthError((), {})
[E 170109 13:38:47 base:132] Internal Error: Traceback (most recent call last):
File "/home/jinlei1/tools/zkdash/handler/bases/base.py", line 128, in _exec
res = self.response()
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 2601, in wrapper
return method(self, *args, **kwargs)
File "/home/jinlei1/tools/zkdash/handler/config/znode.py", line 77, in response
ZnodeService.get_znode_tree(zoo_client, normalized_path, nodes)
File "/home/jinlei1/tools/zkdash/service/znode.py", line 146, in get_znode_tree
get_znode_tree(zoo_client, child_path, nodes, child_id, current_id)
File "/home/jinlei1/tools/zkdash/service/znode.py", line 146, in get_znode_tree
get_znode_tree(zoo_client, child_path, nodes, child_id, current_id)
File "/home/jinlei1/tools/zkdash/service/znode.py", line 146, in get_znode_tree
get_znode_tree(zoo_client, child_path, nodes, child_id, current_id)
File "/home/jinlei1/tools/zkdash/service/znode.py", line 146, in get_znode_tree
get_znode_tree(zoo_client, child_path, nodes, child_id, current_id)
File "/home/jinlei1/tools/zkdash/service/znode.py", line 146, in get_znode_tree
get_znode_tree(zoo_client, child_path, nodes, child_id, current_id)
File "/home/jinlei1/tools/zkdash/service/znode.py", line 136, in get_znode_tree
children = zoo_client.get_children(path)
File "/usr/local/lib/python2.7/site-packages/kazoo/client.py", line 1078, in get_children
return self.get_children_async(path, watch, include_data).get()
File "/usr/local/lib/python2.7/site-packages/kazoo/handlers/utils.py", line 78, in get
raise self._exception
NoAuthError: ((), {})
[root@localhost bin]# python syncdb.py
Traceback (most recent call last):
File "syncdb.py", line 19, in
from model.db.base import ZKDASH_DB
File "/home/danneycao/open_src/zkdash/model/db/base.py", line 18, in
ZKDASH_DB = Database(**DATABASE)
File "/home/danneycao/open_src/zkdash/lib/db/database.py", line 26, in init
self.load_database()
File "/home/danneycao/open_src/zkdash/lib/db/database.py", line 32, in load_database
self.database.field_overrides.update({'enum': 'enum'}) # 增加枚举类型
AttributeError: 'MyRetryDB' object has no attribute 'field_overrides'
能不能加上权限验证,这样的后台希望登陆后才能访问
[E 160918 14:04:51 base:132] Internal Error: Traceback (most recent call last):
File "/Users/xinglongliu/git/zkdash/handler/bases/base.py", line 128, in _exec
res = self.response()
File "/Library/Python/2.7/site-packages/tornado/web.py", line 2601, in wrapper
return method(self, _args, *_kwargs)
File "/Users/xinglongliu/git/zkdash/handler/config/znode.py", line 72, in response
self.cluster_name, normalized_path, nodes)
File "/Users/xinglongliu/git/zkdash/service/znode.py", line 152, in get_znode_tree_from_qconf
from lib.zyqconf import qconf_py
File "/Users/xinglongliu/git/zkdash/lib/zyqconf/init.py", line 12, in
import qconf_py
ImportError: dlopen(/Users/xinglongliu/git/zkdash/lib/zyqconf/qconf_py.so, 2): no suitable image found. Did find:
/Users/xinglongliu/git/zkdash/lib/zyqconf/qconf_py.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
zkdash/lib/zyqconf/qconf_py.so
这个源码不会公开吗?
python ./bin/syncdb.py
Traceback (most recent call last):
File "./bin/syncdb.py", line 19, in
from model.db.base import ZKDASH_DB
File "/Users/peirong.jiang/PycharmProjects/zkdash/model/db/base.py", line 12, in
from peewee import Field
ImportError: No module named peewee
File "/usr/lib/python2.7/site-packages/kazoo/hosts.py", line 3, in
from six.moves import urllib_parse
ImportError: cannot import name urllib_parse
Traceback (most recent call last):
File "init.py", line 86, in
main()
File "init.py", line 78, in main
application = Application()
File "init.py", line 35, in init
routes = load('handler')
File "/root/zkdash/lib/utils/routes.py", line 109, in load
import(modname)
File "/root/zkdash/handler/config/znode.py", line 27, in
from service import znode as ZnodeService
File "/root/zkdash/service/znode.py", line 16, in
from lib.zyqconf import qconf_py
File "/root/zkdash/lib/zyqconf/init.py", line 12, in
import qconf_py
qconf_py.Error: inital qconf evn failed!
能不能把 节点值: 都更改为areatext
这样配置文件是不是就能保持格式,增强可读性?
报错情况如下:
[ERROR 2015-10-20 09:26:57,325 base.py 140] Internal Error: Traceback (mos t recent call last):
File "zkdash/handler/bases/base.py", lin e 130, in _exec
res = self.response()
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 2601, in wrapper
return method(self, _args, *_kwargs)
File "zkdash/handler/config/agent.py", l ine 95, in response
zk_agents = zoo_client.get_children(self.agent_register_prefix)
File "/usr/local/lib/python2.7/dist-packages/kazoo/client.py", line 1078 , in get_children
return self.get_children_async(path, watch, include_data).get()
File "/usr/local/lib/python2.7/dist-packages/kazoo/handlers/utils.py", l ine 72, in get
raise self._exception
ConnectionClosedError: Connection has been closed
可能原因:
zkdash/service/zookeeper.py line 34没有判断已建立连接的状态
我运行python init.py -port=8888 & 后,因为程序在运行过程中有大量日志打印,我关闭了终端,就无法访问web页面了
说好的“更易用,更开发,拥有完善权限管理,支持zk,更易用”的第二版本呢?
zkdash/lib/zyqconf/init.py", line 12, in \n import qconf_py\nImportError: libpython2.7.so.1.0: cannot open shared object file: No such file or directory\n
有没有社区,qq群之类的方便大家沟通的地方?
日志是这个,使用QConf,查不到数据?什么情况
"SELECT node.id, node.node_path, (COUNT(parent.node_path)-1) AS depth FROM zd_snapshot_tree AS node, zd_snapshot_tree AS parent WHERE node.cluster_name = 'test' AND parent.cluster_name = 'test' AND node.node_path like '/%%' AND node.left BETWEEN parent.left AND parent.right GROUP BY node.node_path ORDER BY node.left"
这个sql 报错了
错误日志:
error.log
[WARNING 2015-10-19 10:04:48,530 base.py 133] Mysql OperationalError: (2006, 'MySQL server has gone away')
zkdash.log
[INFO 2015-10-19 10:04:48,515 base.py 25] 重连数据库...
[INFO 2015-10-19 10:04:48,516 init.py 65] 302 GET /config/snapshot/index?target_tab=_config_snapshot&xsrf=2%7C17bfb130%7Cdc3a69e4a29362a6b33165d284f8b5b3%7C1444999331&=1445220289410 (36.110.17.2) 2.02ms
[DEBUG 2015-10-19 10:04:48,529 peewee.py 2865]('SELECT Count%28*%29 FROM zd_zookeeper
AS t1 WHERE %28t1
.deleted
= %s%29', ['0'])
[WARNING 2015-10-19 10:04:48,530 base.py 133] Mysql OperationalError: (2006, 'MySQL server has gone away')
启动的时候能指定监听IP吗
现在如果直接从根查起,貌似是一次性遍历所有节点出来的?
如果改成逐级展示,打开某个父节点的时候再去取子节点的信息会不会更能应对配置较多的场景?
在更新配置的时候,如果配置项为文件,则无法直接上传新文件更新,仅能下载配置文件。只有在切换节点类型后,才能再次上传文件。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.