【问题标题】:Cassandra "Detected unreadable sstables " ErrorCassandra“检测到不可读的sstables”错误
【发布时间】:2015-12-27 00:52:24
【问题描述】:

在我的 windows 机器上,在正常重启 windows 更新后,我在 Cassandra (2.2.0) 中收到以下错误并且它不会启动:

错误 10:36:41 检测到不可读的 sstables D:\cassandra_data\data\gputptest-abcdedf-5040777060fe11e5a8557fcd8340170b-KeyCache-b.db,D:\cassandra_data\data\OpsCenter-events_timeline-afbbeee05cea11e59ba77fcd8.db,40170Cacheb.db,4017 D:\cassandra_data\data\system-IndexInfo-9f5c6374d48532299a0a5094af9ad1e3-KeyCache-b.db,....,请检查 NEWS.txt 并确保您已升级到所有必需的中间版本,运行 upgradesstables

有什么建议可以恢复数据库吗?或者,至少删除那些无法读取的 sstables 并恢复其余部分?

【问题讨论】:

    标签: cassandra startup cassandra-2.0


    【解决方案1】:

    问题已解决 [感谢 Jeff Jirsa 的帖子 here]

    我只是删除了错误消息中报告的所有 *.-KeyCache-b.db 文件。然后,我启动了 Cassandra,一切都很好。

    为了删除有问题的 *.-KeyCache-b.db 文件(错误消息中有 30 个),我将文件名放在一个文本文件中,然后在 powershell 中运行以下命令:

    Get-Content unreadables_stables.txt | Remove-Item
    

    【讨论】:

    • 非常感谢!
    猜你喜欢
    • 1970-01-01
    • 2017-11-21
    • 2015-02-10
    • 1970-01-01
    • 2012-02-13
    • 2022-07-05
    • 1970-01-01
    • 2015-04-10
    • 2015-06-10
    相关资源
    最近更新 更多