Error(context deadline exceeded) when import data via dgraph live

I met the problem just like what “Struggle to do A bigger dataset with docker-compose” said.
I’m on linux, not docker. When I load the rdf.file like:

dgraph live -r dgraph/N_quads.rdf.gz -s dgraph/N_quads.schema.gz -z 5080 -d localhost:9080

then I get:

Total Txns done:        0 RDFs per second:       0 Time Elapsed: 2s, Aborts: 0
Total Txns done:        0 RDFs per second:       0 Time Elapsed: 4s, Aborts: 0
Total Txns done:        0 RDFs per second:       0 Time Elapsed: 6s, Aborts: 0
Total Txns done:        0 RDFs per second:       0 Time Elapsed: 8s, Aborts: 0
2018/01/19 18:57:39 zero.go:29: Could not dial zero at address "5080": context deadline exceeded
2018/01/19 18:57:39 xidmap.go:110: Error while getting lease: Failed to obtain zero leader after trying all connections

But I run state query to zero(6080) and health query to server(8080), it said OK.
SO what’s wrong here? What should I do?

You need to give the full address for Dgraph Zero, so try -z localhost:5080. We have made the error message better in v1.0.2.

I will try it, thx a lot:grinning:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.