ZooKeeper有一个层次的命名空间,很像一个分布式文件系统。惟一的区别是命名空间中的每个节点都可以有数据和与其关联的子节点。这就像一个文件系统允许一个文件同时也是一个目录。路径是绝对的不能是相对的。
路径规则(不可包含以下类型的unicode字符):
* The null character (\u0000) cannot be part of a path name.
* The following characters can‘t be used because they don‘t display well, or render (呈现) in confusing ways ( 令人困惑的方式 ): \u0001 - \u001F and \u007F
* \u009F.
* The following characters are not allowed: \ud800 - uF8FF, \uFFF0 - uFFFF.
* The "." character can be used as part of another name, but "." and ".." cannot alone be used to indicate a node along a path ( 不能单独使用 ), because ZooKeeper doesn‘t use relative paths. The following would be invalid: "/a/b/./c" or "/a/b/../c".
* The token "zookeeper" is reserved ( 保留 ).
原文:https://www.cnblogs.com/BINGJJFLY/p/12054752.html