我正在一个cassandra集群中做一些测试,现在我有了一个包含1TB数据的表,我使用ycsb来执行更多的插入操作,我发现与同一集群中相同的新表(大约80000 ops/秒)相比,.While插入的吞吐量非常低(约10000 ops/秒),cpu使用率约为40%,几乎没有磁盘使用。
我使用nodetool获取任务细节,它显示:
Pool Name Active Pending Completed Blocked All time blocked
CounterMutationStage 0 0
我在我的Ubuntu20.04中安装了Cassandra稳定版本。Java 11是我的默认版本。当我运行以下代码时,将得到以下错误。
(base) vijee@vijee-Lenovo-IdeaPad-S510p:~$ sudo nodetool status
ERROR 13:18:40,031 Cannot initialize un-mmaper. (Are you using a non-Oracle JVM?) Compacted data files will not be removed promptly. Consider using an Oracle JVM or u
我在使用nodetool启动清理命令时遇到问题。 到目前为止,Cleanup确实运行得很好。我没有在我的配置上找到任何修改。我不知道会发生什么变化。 nodetool > cleanup
error: Expecting URI in variable: [cassandra.config]. Found[cassandra.yaml]. Please prefix the file with [file:///] for local files and [file://<server>/] for remote files. If you are executing th
我有一个生产卡桑德拉节点,并希望创建相同的卡桑德拉在我的本地机器。根据我的理解,我可以选择以下选项
1. Taking snapshot of each keyspace from production and use it in local machine.(But It would take more time as I have many keyspace).
2. Exporting production cassandra data to as CSV and importing in to local cassandra(I have COUNTER TABLE. Hence,
我在本地有一个Cassandra数据库节点。它是其他系统的一部分。这不是简单的数据,而是复杂的大量信息,我想在考虑到整个关键空间的情况下进行传输。
我想换码头。我在迁移现有数据时遇到了问题。我正在做一个键空间快照,负责存储的文件:
nodetool cleanup <keyspace>
nodetool snapshot <keyspace> -t <backup_name>
在同一个实例上创建快照并将其还原没有问题:
service cassandra stop
for I in `ls /var/lib/cassandra/data/<keyspa
我发现种子节点上cassandra的CPU和内存使用率很高。建议在非高峰时段停止压缩(nodetool stop)并启用。我应该执行手动压缩还是启用自动压缩。我看到了很多Native-Transport-Requests。我有三个种子节点。这是第一个种子节点。
Pool Name Active Pending Completed Blocked All time blocked
ReadStage 0 0 54255 0
在大约一个月的时间里,我在nodetool 输出中的Cassandra集群中看到了3个节点(复制因子= 3)的使用空间值:
Pending Tasks: 0
Column Family: BinaryData
SSTable count: 8145
Space used (live): 787858513883
Space used (total): 1060488819870
对于其他节点,我看到了很好的值,比如:
Space used (live): 780599
我在aws新加坡区域有一个包含4个节点的cassandra集群,我必须将它迁移到孟买区域,所以我在孟买区域创建了一个新的数据中心,将其添加到新加坡集群中,并逐个在所有新节点上运行rebuild命令。以前节点上的数据=大约150 on /节点。新节点上的数据=两个节点上的200 on /节点,一个节点上的100 on。
我不知道为什么会发生这种情况,它应该是200 be /节点。我使用cassandra 3.9,在新数据中心使用vnode,在旧数据中心使用单令牌。
我想弄清楚这是什么原因。
我尝试在几秒钟内完成重建,RF为3节点工具状态显示所有节点正常运行