1

当我对现有集合执行 mongodump 时,转储会在 23% 的转储处停止。该文件约为 1.2 GB。我也试过mongoexport。但这也停止在 23%。
转储/导出总是在 21257107 条记录处停止。这正常吗?(操作系统是 Ubuntu 14.04 LTS)

mongodump -h localhost:27020 -d SensorData -c Values -o Dump
connected to: localhost:27020
2016-02-15T09:41:25.099+0100 DATABASE: SensorData to Dump/SensorData
2016-02-15T09:41:25.101+0100    SensorData.Values to Dump/SensorData/Values.bson
2016-02-15T09:41:28.178+0100            Collection File Writing Progress: 434100/91183458       0%      (documents)
2016-02-15T09:41:31.051+0100            Collection File Writing Progress: 940300/91183458       1%      (documents)
-------------------
2016-02-15T09:47:34.002+0100            Collection File Writing Progress: 21155100/91183458     23%     (documents)
2016-02-15T09:47:37.339+0100             21257107 documents
2016-02-15T09:47:37.339+0100    Metadata for SensorData.Values to Dump/SensorData/Values.metadata.json

mongoexport -host localhost:27020 --db SensorData --collection Values -vv  --out filename.json
2016-02-15T10:51:33.507+0100 creating new connection to:localhost:27020
2016-02-15T10:51:33.507+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-15T10:51:33.508+0100 connected to server localhost:27020 (127.0.0.1)
2016-02-15T10:51:33.508+0100 connected connection!
connected to: localhost:27020
exported 21257107 records
4

0 回答 0