How do I dump a set
in Aerospike into JSON (newline-separated JSON)?
I tried
aql -h 10.0.0.1 --no-config-file --outputmode=json -c "select * fromnamespace.set_name" >> whatever.json
and
(echo "select * from namespace.set_name" && cat) | aql -h 10.0.0.1 --no-config-file --outputmode=json > whatever.txt
but both get stuck after dumping ~25MB (for unknown reasons).
Edit: formatting.
Long story short, I took the long route (wrote a script):