Import a 2GB json file into dgraph, and the corresponding node will die

Use the following command:

curl -H "Content-Type: application/json" "localhost:8280/mutate?commitNow=true" -XPOST --data-binary @out_node_ab.json

Can you show us the alpha logs too? And some part of json file?

Probably OOM. What is your config of the hardware?

This is not really recommended. Sending 2GB over HTTP will create a huge transaction. We recommend batches of at least 1k or 5k RDFs. Unless you use the ludicrous mode.

You should be using Liveloader instead.

3 Likes

thanks,I divided the file into 10M small files, and now I can import them circularly

3 Likes