We created a db with sharded collections, as instructed for Pregel:
db._create("main", {shardKeys:['_key'],numberOfShards: 8})
db._create( "others", { distributeShardsLike:"main" ,numberOfShards: 8})
...
db._createEdgeCollection( "links", { distributeShardsLike:"main" , shardKeys:['vertex'],numberOfShards: 8 })
...
But when we export and import the data to another cluster we always get this:
2017-08-25T09:47:04Z [9839] ERROR must not specify _key for this collection: got error from server: HTTP 400 (Bad Request): ArangoError 1466: must not specify _key for this collection: must not specify _key for this collection
so surely there is something we are doing wrong, and there is a right way to dump and restore. How are we to do this?
How should we restore data from "Pregel" ready databases?
Backup command we are using:
arangodump --output-directory "landman.$(date +%Y-%m-%d:%H:%M:%S)" --include-system-collections true
Restore command we are using:
arangorestore --create-collection true --import-data true --include-system-collections true --recycle-ids true --input-directory $1