如何将set
Aerospike 中的 a 转储为 JSON(换行符分隔的 JSON)?
我试过了
aql -h 10.0.0.1 --no-config-file --outputmode=json -c "select * fromnamespace.set_name" >> whatever.json
和
(echo "select * from namespace.set_name" && cat) | aql -h 10.0.0.1 --no-config-file --outputmode=json > whatever.txt
但在转储 ~25MB 后两者都卡住了(原因不明)。
编辑:格式化。