It seems dgraph-bulk-loader depends on “ulimit” as it is starting up. It seems this is not compatible with Windows - please see error below. Maybe it can be defaulted to something reasonable, or entered manually, for running it on Windows. Let me know if you want me to create an issue on github and I’ll create one there.
C:\dgraph\dgraph83>dgraph-bulk-loader.exe -r=data.rdf.gz -s=data.schema -map_shards=1 -reduce_shards=1
{
"RDFDir": "data.rdf.gz",
"SchemaFile": "data.schema",
"DgraphsDir": "out",
"LeaseFile": "LEASE",
"TmpDir": "tmp",
"NumGoroutines": 4,
"MapBufSize": 67108864,
"ExpandEdges": true,
"BlockRate": 0,
"SkipMapPhase": false,
"CleanupTmp": true,
"NumShufflers": 1,
"Version": false,
"StoreXids": false,
"MapShards": 1,
"ReduceShards": 1
}
e[31mNonfatal error: max open file limit could not be detected: cannot detect max open files on this platform
e[0mThe 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.
2017/10/23 11:33:03 open data.schema: The system cannot find the file specified.