Elasticdump(Node.js上)を使用して、Elasticsearchでjsonのインデックスをバックアップおよび復元してみました。
【バックアップ】
elasticdump --input=http://cred:[email protected]:9200/.kibana --output=kibana.json --type=data
(作品)
[復元]
elasticdump --output=http://cred:[email protected]:9200/.kibana --input=kibana.json --type=data
(エラーが発生します)
エラーは次のとおりです。
_stream_readable.js:749
throw new Error('Cannot switch to old mode now.');
^
Error: Cannot switch to old mode now.
at emitDataEvents (_stream_readable.js:749:11)
at ReadStream.Readable.pause (_stream_readable.js:740:3)
at file.completeBatch (/usr/lib/node_modules/elasticdump/lib/transports/file.js:75:19)
at Stream.<anonymous> (/usr/lib/node_modules/elasticdump/lib/transports/file.js:65:10)
at Stream.emit (events.js:117:20)
at drain (/usr/lib/node_modules/elasticdump/node_modules/through/index.js:34:23)
誰かが何が起こっているのか、そしてそれを修正する方法を知っていますか?
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加