Permalink
Browse files

clientPort warning if <1024

  • Loading branch information...
1 parent 562b74c commit dd77c63ae656a4f59dda232f7b3380c61e9fc341 @andreisavu committed Jul 16, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 zoocfg.py
View
3 zoocfg.py
@@ -136,6 +136,9 @@ def check(cls, cfg):
elif not isinstance(cfg.clientPort, int) or cfg.clientPort < 0 or cfg.clientPort > 65535:
errors.append('`clientPort` should be a valid TCP/IP port number.')
+ elif cfg.clientPort < 1024:
+ warnings.append('`clientPort` < 1024. You should not run ZooKeeper using the root account')
+
return warnings, errors
class TickTime(BaseRule):

0 comments on commit dd77c63

Please sign in to comment.