I Want to Do
I want to load a large amount of data into Dgraph using the Bulk Loader.
What I Did
I have a 3 nodes Kubernetes cluster running the HA K8s deployment with the init containers on the
alphas (and the pods are still pending as such). I have launched a Pod inside the cluster with a PV attached that contains the data and tried to launch the following command:
dgraph bulk -f filename.rdf.gz -s schema/dgraph.schema --reduce_shards=1 --zero=dgraph-zero.default.svc.cluster.local:5080
I get back the following errors:
Error communicating with dgraph zero, retrying: rpc error: code = Unknown desc = Assigning IDs is only allowed on leader.
I tried scaling back the
zero statefulset to 1 node, to no avail. The logs on that side show:
Got error: Assigning IDs is only allowed on leader. while leasing timestamps: val:1
Dgraph version : v20.11.1 Dgraph codename : tchalla-1 Dgraph SHA-256 : cefdcc880c0607a92a1d8d3ba0beb015459ebe216e79fdad613eb0d00d09f134 Commit SHA-1 : 7153d13fe Commit timestamp : 2021-01-28 15:59:35 +0530 Branch : HEAD Go version : go1.15.5 jemalloc enabled : true