Cassandra - sstable2json " -f "选项无效

时间:2021-03-26 13:43:32

I am using Cassandra 0.7.8, and I encountered an error message "You must supply exactly one sstable" when using command: "bin/sstable2json [-f OUT_FILE] SSTABLE" my command is: bin/sstable2json -f test.json /storage/cassandra/Test-f-35-Data.db

我正在使用Cassandra 0.7.8,在使用命令“bin/sstable2json [-f OUT_FILE] sstable”时,我遇到了一个错误消息“您必须提供一个sstable”。json /存储/卡桑德拉/ Test-f-35-Data.db

So, does "-f" option work in this version?

那么,“-f”选项在这个版本中有效吗?

1 个解决方案

#1


10  

Looks like the -f flag was removed in 0.6 (see CASSANDRA-766). When I run sstable2json I see no mention of -f (on 1.0). You should redirect the output to a file using your shell:

看起来-f标志在0.6中被移除(参见CASSANDRA-766)。当我运行sstable2json时,我没有看到-f(1.0)。您应该使用shell将输出重定向到一个文件:

./bin/sstable2json /storage/cassandra/Test-f-35-Data.db > test.json

#1


10  

Looks like the -f flag was removed in 0.6 (see CASSANDRA-766). When I run sstable2json I see no mention of -f (on 1.0). You should redirect the output to a file using your shell:

看起来-f标志在0.6中被移除(参见CASSANDRA-766)。当我运行sstable2json时,我没有看到-f(1.0)。您应该使用shell将输出重定向到一个文件:

./bin/sstable2json /storage/cassandra/Test-f-35-Data.db > test.json