简体   繁体   English

Cassandra sstableloader,未还原任何数据

[英]Cassandra sstableloader, no data restored

i've been trying to use sstableloader to restore a snapshot, and while i don't have any exception when doing so, no data is restored on my new node. 我一直在尝试使用sstableloader还原快照,并且这样做时没有任何异常,但是新节点上没有数据还原。

here is the result of sstableloader -d newNodeIp keyspaceFolder : 这是sstableloader -d newNodeIp keyspaceFolder的结果:

Established connection to initial hosts 建立与初始主机的连接
Opening sstables and calculating sections to stream 打开稳定表并计算要流的部分

Summary statistics: 统计摘要:
Connections per host : 1 每个主机的连接数:1
Total files transferred : 0 传输的文件总数:0
Total bytes transferred : 0.000KiB 传输的总字节数:0.000KiB
Total duration : 2637 ms 总持续时间:2637毫秒
Average transfer rate : 0.000KiB/s 平均传输速率:0.000KiB / s
Peak transfer rate : 0.000KiB/s 峰值传输速率:0.000KiB / s

i've tried running it either from the node the backup comes from or from another remote host, the result is the same. 我尝试从备份来自的节点或另一个远程主机运行它,结果是相同的。
the cassandra version is the latest stable one as of this post (3.11.1). cassandra版本是本帖子(3.11.1)中最新的稳定版本。
the source and destination keyspaces have the same name. 源和目标键空间具有相同的名称。

the folder containing the backup is structured as such: 包含备份的文件夹的结构如下:

keyspaceName/table-uuid/ keyspaceName / table-uuid /

^ each of these folders containing sstable files. ^这些文件夹中的每个文件夹都包含sstable文件。
none of these folders contain subfolders (no backups / snapshots subfolders). 这些文件夹都不包含子文件夹(没有备份/快照子文件夹)。
the corresponding folders on the new node are similarly named (with the exception of the uuid obviously). 新节点上的相应文件夹的名称类似(显然是uuid除外)。
should that be of interest, each node is a docker container. 如果有兴趣,每个节点都是一个docker容器。

any clue as to why sstableloader wouldn't be able to restore my backup please? 关于为什么sstableloader无法还原我的备份的任何线索?
am i using it wrong? 我使用错了吗?
don't hesitate to point out any missing info. 不要犹豫,指出任何缺少的信息。

您还应该添加表名,而不仅是键空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM