I can’t seem to import data with the live loader to my Slash endpoint. I’m able to make client operations to the endpoint using PyDgraph (which are super slow but that is another issue), however when I try to follow the instructions for using the live loader I can’t seem to connect.
Running transaction with dgraph endpoint: <endpoint> While trying to setup connection: context deadline exceeded. Retrying... 2020/12/26 15:51:28 Could not setup connection after 1 retries github.com/dgraph-io/dgraph/x.Fatalf /ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:114 github.com/dgraph-io/dgraph/x.GetDgraphClient /ext-go/1/src/github.com/dgraph-io/dgraph/x/x.go:930 github.com/dgraph-io/dgraph/dgraph/cmd/live.run /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:470 github.com/dgraph-io/dgraph/dgraph/cmd/live.init.0.func1 /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:123 github.com/spf13/cobra.(*Command).execute /firstname.lastname@example.org/command.go:830 github.com/spf13/cobra.(*Command).ExecuteC /email@example.com/command.go:914 github.com/spf13/cobra.(*Command).Execute /firstname.lastname@example.org/command.go:864 github.com/dgraph-io/dgraph/dgraph/cmd.Execute /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70 main.main /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78 runtime.main /usr/local/go/src/runtime/proc.go:203 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1373
That endpoint already has a schema I was able to create using PyDgraph and I am using an rdf file that I was able to successfully import on my local
dgraph/dgraph:v20.07-slash container but when I try:
sudo docker run -it --rm -v /path/to/<file>.rdf.gz:/tmp/<file>.rdf.gz dgraph/dgraph:v20.07-slash dgraph live --slash_grpc_endpoint=<endpoint> -f /tmp/<file>.rdf.gz -t <admin_api_key> -U "xid"
dgraph/dgraph:master or even that dgraph live command without docker, I get the error above. I’ve also tried another backend and endpoint, same results. Not sure what sure what I am missing here.