Zookeeper znode 不显示数据目录中的文件
Zookeeper znode not showing files in data directory
我有 zookeeper znode for solr cloud 。我可以使用以下 solr 命令查看我上传的文件。
Zookeeper 列表输出:
ubuntu@ip-172-26-12-83:~/solr-7.7.2/bin$ ./solr zk ls /solr/configs/_default -z 127.0.0.1:2181,13.113.xx.xx:2181
protwords.txt
managed-schema
solrconfig.xml
synonyms.txt
stopwords.txt
lang
params.json
但是当我尝试签入 zookeeper 数据目录时,它没有显示上述文件。
Zookeeper 数据目录:
ubuntu@ip-172-26-12-83:~/solr-7.7.2/bin$ ls /tmp/zookeeper/
myid version-2 zookeeper_server.pid
ubuntu@ip-172-26-12-83:~/solr-7.7.2/bin$\
Zookeeper 不会将其内容作为文件直接存储在磁盘上(因此您不会期望在 datadir 下找到与文件匹配的 1:1)。由于存储在 Zookeeper 中的内容并不总是常规文件(并且跨节点同步),因此没有任何理由将此映射设为 1:1.
内容始终保留 in-memory,而 a snapshot and a transaction log 保留在磁盘上以在必要时恢复内容。
The Data Directory
This directory has two files in it:
myid - contains a single integer in human readable ASCII text that represents the server id.
snapshot. - holds the fuzzy snapshot of a data tree.
创建这些文件的频率取决于 Zookeeper 安装的设置。
我有 zookeeper znode for solr cloud 。我可以使用以下 solr 命令查看我上传的文件。
Zookeeper 列表输出:
ubuntu@ip-172-26-12-83:~/solr-7.7.2/bin$ ./solr zk ls /solr/configs/_default -z 127.0.0.1:2181,13.113.xx.xx:2181
protwords.txt
managed-schema
solrconfig.xml
synonyms.txt
stopwords.txt
lang
params.json
但是当我尝试签入 zookeeper 数据目录时,它没有显示上述文件。
Zookeeper 数据目录:
ubuntu@ip-172-26-12-83:~/solr-7.7.2/bin$ ls /tmp/zookeeper/
myid version-2 zookeeper_server.pid
ubuntu@ip-172-26-12-83:~/solr-7.7.2/bin$\
Zookeeper 不会将其内容作为文件直接存储在磁盘上(因此您不会期望在 datadir 下找到与文件匹配的 1:1)。由于存储在 Zookeeper 中的内容并不总是常规文件(并且跨节点同步),因此没有任何理由将此映射设为 1:1.
内容始终保留 in-memory,而 a snapshot and a transaction log 保留在磁盘上以在必要时恢复内容。
The Data Directory
This directory has two files in it:
myid - contains a single integer in human readable ASCII text that represents the server id.
snapshot. - holds the fuzzy snapshot of a data tree.
创建这些文件的频率取决于 Zookeeper 安装的设置。