Cassandra option - sstable2json "-f" not working

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

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

+4
source share
1 answer

It looks like the -f flag was removed at 0.6 (see CASSANDRA-766 ). When I run sstable2json, I don't see the mention of -f (at 1.0). You must redirect the output to a file using the shell:

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

Source: https://habr.com/ru/post/1396970/


All Articles