Hey @xxm404, from trace looks like something is wrong with schema file. Can you verify if it is in correct format. Also please try to reproduce it on any of latest releases.
Hey @xxm404, this is correct schema file. Can you try reproducing it on any of latest release(v20.03.1)? If it still persists, let the know the steps to reproduce it.
It still failed when I imported the same data in v20.03.1
[Decoder]: Using assembly version of decoder
I0427 08:04:38.217033 2863 init.go:99]
Dgraph version : v20.03.1
Dgraph SHA-256 : 6a40b1e084205ae9e29336780b3458a3869db45c0b96b916190881c16d705ba8
Commit SHA-1 : c201611d6
Commit timestamp : 2020-04-24 13:53:41 -0700
Branch : HEAD
Go version : go1.14.1
For Dgraph official documentation, visit https://docs.dgraph.io.
For discussions about Dgraph , visit http://discuss.dgraph.io.
To say hi to the community , visit https://dgraph.slack.com.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.
{
"DataFiles": "../example/21million.rdf.gz",
"DataFormat": "",
"SchemaFile": "../example/21million.schema",
"OutDir": "./out",
"ReplaceOutDir": false,
"TmpDir": "tmp",
"NumGoroutines": 1,
"MapBufSize": 67108864,
"SkipMapPhase": false,
"CleanupTmp": true,
"NumReducers": 1,
"Version": false,
"StoreXids": false,
"ZeroAddr": "localhost:5086",
"HttpAddr": "localhost:8080",
"IgnoreErrors": false,
"CustomTokenizers": "",
"NewUids": false,
"Encrypted": false,
"MapShards": 1,
"ReduceShards": 1,
"BadgerKeyFile": "",
"BadgerCompressionLevel": 1
}
The bulk loader needs to open many files at once. This number depends on the size of the data set loaded, the map file output size, and the level of indexing. 100,000 is adequate for most data set sizes. See `man ulimit` for details of how to change the limit.
Current max open files limit: 100000
Connecting to zero at localhost:5086
2020/04/27 08:04:38 while lexing
at line 7 column 9: Invalid schema: Unexpected character ' ' while parsing IRI
github.com/dgraph-io/dgraph/lex.(*Lexer).ValidateResult
/ext-go/1/src/github.com/dgraph-io/dgraph/lex/lexer.go:199
github.com/dgraph-io/dgraph/schema.Parse
/ext-go/1/src/github.com/dgraph-io/dgraph/schema/parse.go:443
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.readSchema
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/loader.go:165
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.newLoader
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/loader.go:119
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.run
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/run.go:234
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.init.0.func1
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/run.go:49
github.com/spf13/cobra.(*Command).execute
/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
/go/pkg/mod/github.com/spf13/cobra@v0.0.5/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
github.com/dgraph-io/dgraph/x.Check
/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:42
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.readSchema
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/loader.go:166
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.newLoader
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/loader.go:119
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.run
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/run.go:234
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.init.0.func1
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/run.go:49
github.com/spf13/cobra.(*Command).execute
/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
/go/pkg/mod/github.com/spf13/cobra@v0.0.5/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
reproduce steps
Start dgraph zero ./bin/dgraph zero --config=./conf/zero.yml