Cassandra system.hints表是空的,即使当节点之一关闭 [英] Cassandra system.hints table is empty even when the one of the node is down

查看:374
本文介绍了Cassandra system.hints表是空的,即使当节点之一关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从academy.datastax.com学习Cassandra。我在本地机器上尝试复制和一致性演示。 RF = 3和Consistency = 1。

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

当我的Node3关闭并且使用update命令更新我的表时,SYSTEM.HINTS表需要存储node3的提示但它总是空的。

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.

我需要进行任何配置更改提示工作或默认值是否确定?

Do I need to make any configurational changes for hints to work or the defaults are ok?

surjanrawat$ ccm node1 nodetool getendpoints mykeyspace mytable 1
127.0.0.3
127.0.0.4
127.0.0.5

surjanrawat$ ccm status
Cluster: 'mycluster'
--------------------
node1: UP
node3: DOWN
node2: UP
node5: UP
node4: UP

cqlsh:mykeyspace> select * from system.hints ;

 target_id | hint_id | message_version | mutation
-----------+---------+-----------------+----------

(0 rows)


推荐答案

您是否使用完全相同的Cassandra版本来创建集群?从版本3+起,提示存储在协调器的本地文件系统中。我问这是因为在Datastax演示中我发生了完全相同的事情(我使用3.0.3而不是2.1.5)我重新播放的步骤,但与2.1.5和提示在那里的表,正如预期。

Did you use the exact same version of Cassandra to create the cluster? Since version 3+ the hints are stored in the local filesystem of the coordinator. I ask this because the exact same thing happened to me during that Datastax demo (I used 3.0.3 instead of 2.1.5) I replayed the steps but with 2.1.5 and the hints where there in the table just as expected.

这篇关于Cassandra system.hints表是空的,即使当节点之一关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆