-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
46 lines (27 loc) · 970 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
ZooKeeper Config Parser & Validator
-----------------------------------
Target: ZooKeeper 3.3.x
Author: Andrei Savu -- http://www.andreisavu.ro/
Development status: Experimental
A Python class for Parsing and Validating ZooKeeper config files.
Usage
-----
This class can be used in two ways:
* by importing it in your scripts
from zoocfg import ZooCfg, Rules
cfg = ZooCfg.from_file('zoo.cfg')
cfg = ZooCfg(file_content)
check = Rules.check_all(cfg)
if check.has_errors():
# we've got errors in the configuration file
if check.has_warnings():
# some things are strange
* or by using the command-line tool
./zoocfg.py -f zoo.cfg -w
-- will output errors and warnings found while checking the rules
ZooKeeper config rules
----------------------
http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_configuration
Known Issues
------------
* no support for hierarhical groups and weights