# Live uploader: No data files found in

**URL:** <https://discuss.dgraph.io/t/live-uploader-no-data-files-found-in/16558>\
**Category:** Dgraph\
**Tags:** dgraph\
**Created:** [January 15, 2022, 9:07pm UTC](https://discuss.dgraph.io/t/live-uploader-no-data-files-found-in/16558 "2022-01-15T21:07:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![porsche](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/porsche/32/9579_2.png) [@porsche](https://discuss.dgraph.io/u/porsche)\
**Post date:** [January 15, 2022, 9:07pm UTC](https://discuss.dgraph.io/t/live-uploader-no-data-files-found-in/16558/1 "2022-01-15T21:07:12Z")

</div>

I’m using Live uploader data files to dgraph.

- It works fine if I pass full path to data files it works
- I get “No data files found” error, if I pass directory path to --files as value

As per docs [link](https://dgraph.io/docs/deploy/fast-data-loading/live-loader), passing directory should work.

Can someone help here?

1. Put all gzip data files in a local c:\dgraph directory
2. On my local windows machine, start dgraph latest container

```auto
docker run -ti --add-host host.docker.internal:host-gateway --network host -v c:\dgraph:/root/dgraph --name dgraph dgraph/dgraph:latest dgraph zero

```

3. port forward zero and alpha to cloud

```auto
# On new terminal zero loadbalancer
kubectl port-forward svc/dgraph-dgraph-zero 5080:5080 -n dgraph

# On new terminal zero loadbalancer
kubectl port-forward svc/dgraph-dgraph-alpha 9080:9080 -n dgraph

```

4. Connect to the local dgraph container

```auto
# get container_id by running docker ps -a
docker exec -it <container_id> /bin/sh

```

5. Run dgraph, pass folder path to --files parameter

```auto
dgraph live --files /root/dgraph/upload/ --schema /root/dgraph/schema/Person.rdf --alpha host.docker.internal:9080 --zero host.docker.internal:5080 --format=rdf --upsertPredicate "xid"

#Notice this will fail with below error
Dgraph version : v21.12.0
Dgraph codename : zion
Dgraph SHA-256 : 078c75df9fa1057447c8c8afc10ea57cb0a29dfb22f9e61d8c334882b4b4eb37
Commit SHA-1 : d62ed5f15
Commit timestamp : 2021-12-02 21:20:09 +0530
Branch : HEAD
Go version : go1.17.3
jemalloc enabled : true

For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit http://discuss.hypermode.com.
For fully-managed Dgraph Cloud , visit https://dgraph.io/cloud.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.

Running transaction with dgraph endpoint: host.docker.internal:9080

Processing schema file "/root/dgraph/schema/Person.rdf"
Processed schema file "/root/dgraph/schema/Person.rdf"

No data files found in /root/dgraph/upload

```

6. If I run the step #5 by passing explicit data file name instead of directory, it works fine.

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [January 17, 2022, 2:13am UTC](https://discuss.dgraph.io/t/live-uploader-no-data-files-found-in/16558/2 "2022-01-17T02:13:03Z")

</div>

We don’t support Windows anymore.

I don’t quite understand what is happening. You mention “Cloud” and shows a K8s command. Ok, but you are running a zero instance locally? why? If your cluster is in the Cloud, you don’t need a zero instance locally. You just need to run a live loader instance. Nothing more.

> [@porsche](#):
>
> `--schema /root/dgraph/schema/Person.rdf`

The schema in Dgraph isn’t RDF, it is plain text.

> [@porsche](#):
>
> If I run the step #5 by passing explicit data file name instead of directory, it works fine.

Are the files with the RDF extension?

---

<div class="post-metadata">

**Author:** ![porsche](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/porsche/32/9579_2.png) [@porsche](https://discuss.dgraph.io/u/porsche)\
**Post date:** [January 17, 2022, 5:25am UTC](https://discuss.dgraph.io/t/live-uploader-no-data-files-found-in/16558/3 "2022-01-17T05:25:08Z")

</div>

This is issue is now resolved.

The issue was, my data files have .csv.gz extension, dgraph expects them to be rdf.gz

Just to update…

1. By cloud, I meant AKS
2. My zero and alpha are running in ASK
3. To run Live uploader, was running a stance of dgraph container on Windows and portForward to AKS
4. Live uploader is work flawless

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [January 17, 2022, 2:22pm UTC](https://discuss.dgraph.io/t/live-uploader-no-data-files-found-in/16558/4 "2022-01-17T14:22:39Z")

</div>

> [@porsche](#):
>
> dgraph expects them to be rdf.gz

dgraph expects to be gz, rdf or JSON.

> [@porsche](#):
>
> csv

CSV? Dgraph doesn’t support CSV via live or bulk.

> [@porsche](#):
>
> This is issue is not resolved.

What else is blocking you?

---

<div class="post-metadata">

**Author:** ![porsche](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/porsche/32/9579_2.png) [@porsche](https://discuss.dgraph.io/u/porsche)\
**Post date:** [January 17, 2022, 11:09pm UTC](https://discuss.dgraph.io/t/live-uploader-no-data-files-found-in/16558/5 "2022-01-17T23:09:07Z")

</div>

- What is the optimal number of files and file size that can be submitted to Live uploader? I’m asking this question because dgraph is getting killed with 500 files each file is 50MB. My drgaph command is…

- With Ratel, edge node labels weren’t getting rendered properly. See the below picture…

---

<div class="post-metadata">

**Author:** ![iluminae](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/iluminae/32/7367_2.png) [@iluminae](https://discuss.dgraph.io/u/iluminae)\
**Post date:** [January 17, 2022, 11:54pm UTC](https://discuss.dgraph.io/t/live-uploader-no-data-files-found-in/16558/6 "2022-01-17T23:54:36Z")

</div>

Seems like 2 new questions, you may want to put them as topics for better SEO

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [January 18, 2022, 12:27am UTC](https://discuss.dgraph.io/t/live-uploader-no-data-files-found-in/16558/7 "2022-01-18T00:27:57Z")

</div>

> [@porsche](#):
>
> What is the optimal number of files and file size that can be submitted to Live uploader?

No idea, it is unusual (at least for me) to have several files loaded in LiveLoader. In general is a big RDF file. Sometimes with GB in size. I guess this is some OS limitation, maybe RAM limitation or maybe something in the Cobra Lib. Just guessing.

> [@porsche](#):
>
> With Ratel, edge node labels weren’t getting rendered properly. See the below picture…

There are some rules that I don’t remember now. Also some predicates are rendered if you zoom in. Share the query and a copy of the result in JSON.
