cassandra 3.6
openjdk version“1.8.0_91”
当我启动cassandra服务时会抛出此错误。
INFO 05:57:10 Initializing system_schema.keyspaces
INFO 05:57:10 Initializing system_schema.tables
ERROR 05:57:10 Failed to classify files in /var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f
Some old files are missing but the txn log is still there and not completed
Files in folder:
/var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f/ma-404-big-CompressionInfo.db
/var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f/ma-404-big-Data.db
/var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f/ma-404-big-Digest.crc32
/var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f/ma-404-big-Filter.db
/var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f/ma-404-big-Index.db
/var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f/ma-404-big-Statistics.db
/var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f/ma-404-big-Summary.db
/var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f/ma-404-big-TOC.txt
Txn: [ma_txn_compaction_4c1ecb40-0ff9-11e8-a162-c50ddd47b4bb.log in /var/lib/cassandra/data/system_schema/columns-24101c25a2ae3af787c1b40ee1aca33f]
这意味着什么,我该怎么做才能解决这个问题。
提前致谢
答案 0 :(得分:0)
最后我得到了答案。
系统文件已损坏且出现问题。
所以你需要删除里面的所有目录" / var / lib / cassandra / data /"除了你的密钥空间。
*注意:不要删除密钥空间数据。