gpt4 book ai didi

cassandra - 如何检查 Cassandra 节点上的本地提示目录?

转载 作者:行者123 更新时间:2023-12-01 09:52:06 25 4
gpt4 key购买 nike

我遇到了与 Cassandra system.hints table is empty even when the one of the node is down 相同的问题:

I am learning Cassandra from academy.datastax.com. I am trying the Replication and Consistency demo on local machine. RF = 3 and Consistency = 1.

When my Node3 is down and I am updating my table using update command, the SYSTEM.HINTS table is expected to store hint for node3 but it is always empty.

@amalober 指出这是由于使用的 Cassandra 版本不同所致。来自 DataStax 的 Cassandra 文档:

In Cassandra 3.0 and later, the hint is stored in a local hints directory on each node for improved replay.

3 年前有人问过同样的问题,How to access the local data of a Cassandra node ,但公认的解决方案是

...Hack something together using the Cassandra source that reads SSTables and have that feed the local client you're hoping to build. A great starting point would be looking at the source of org.apache.cassandra.tools.SSTableExport which is used in the sstable2json tool.

有没有更简单的方法来访问 Cassandra 节点的本地 hints 目录?

最佳答案

Is there an easier way to access the local hints directory of a Cassandra node?

提示目录在 $CASSANDRA_HOME/conf/cassandra.yaml 文件中定义(有时它也位于 /etc/cassandra 下,具体取决于您安装 Cassandra 的方式)

查找属性 hints_directory

关于cassandra - 如何检查 Cassandra 节点上的本地提示目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35974677/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com