Elasticdump中的'现在不能切换到旧模式'错误

我尝试使用elasticdump(在Node.js上)备份和恢复Elasticsearch中的json索引:

[备份]
elasticdump --input=http://cred:entials@myserver.com:9200/.kibana --output=kibana.json --type=data (Works)

[恢复]
elasticdump --output=http://cred:entials@myserver.com: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) 

有谁知道发生了什么事以及如何解决?

       

网上收集的解决方案 "Elasticdump中的'现在不能切换到旧模式'错误"