# Problem with data load

**URL:** <https://discuss.elastic.co/t/problem-with-data-load/20025>\
**Category:** Elasticsearch\
**Created:** [October 1, 2014, 1:47pm UTC](https://discuss.elastic.co/t/problem-with-data-load/20025 "2014-10-01T13:47:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jochen\_Rieseberg](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@Jochen\_Rieseberg](https://discuss.elastic.co/u/Jochen_Rieseberg)\
**Post date:** [October 1, 2014, 1:47pm UTC](https://discuss.elastic.co/t/problem-with-data-load/20025/1 "2014-10-01T13:47:08Z")

</div>

Hi,

I just tried to follow the reference guide with load data and get an error:

No handler found for uri  
[/'localhost:9200/bank/account/\_bulk?pretty%27%20--data-binary%20@accounts.json]  
and method [POST]

Is there an error in the code of the reference guide or did I put data in  
the wrong directory?

So, what does he mean with "our current directory"?

Many thanks for any help

Jochen Rieseberg

You can download the sample dataset (accounts.json) from here  
[https://github.com/bly2k/files/blob/master/accounts.zip?raw=true](https://github.com/bly2k/files/blob/master/accounts.zip?raw=true). Extract  
it to our current directory and let’s load it into our cluster as follows:

curl -XPOST 'localhost:9200/bank/account/\_bulk?pretty' --data-binary @accounts.json  
curl 'localhost:9200/\_cat/indices?v'

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3b0fb48f-398b-4b21-9f4b-4bec59e51ab2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3b0fb48f-398b-4b21-9f4b-4bec59e51ab2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Tanguy\_Leroux](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanguy_leroux/32/121066_2.png) [@Tanguy\_Leroux](https://discuss.elastic.co/u/Tanguy_Leroux)\
**Post date:** [October 1, 2014, 2:24pm UTC](https://discuss.elastic.co/t/problem-with-data-load/20025/2 "2014-10-01T14:24:27Z")

</div>

Hi Jochen,

The command in the reference guide looks good to me. It seems that you  
copy/paste the command with the HTML encoded chars of the documentation.  
You might try without copy/paste from the doc.

Also, I think "our current directory" stands for "the directory where the  
accounts.json file is located".

-- Tanguy

Le mercredi 1 octobre 2014 15:47:08 UTC+2, Jochen Rieseberg a écrit :

> Hi,
> 
> I just tried to follow the reference guide with load data and get an error:
> 
> No handler found for uri  
> [/'localhost:9200/bank/account/\_bulk?pretty%27%20--data-binary%20@accounts.json]  
> and method [POST]
> 
> Is there an error in the code of the reference guide or did I put data in  
> the wrong directory?
> 
> So, what does he mean with "our current directory"?
> 
> Many thanks for any help
> 
> Jochen Rieseberg
> 
> You can download the sample dataset (accounts.json) from here  
> [https://github.com/bly2k/files/blob/master/accounts.zip?raw=true](https://github.com/bly2k/files/blob/master/accounts.zip?raw=true).  
> Extract it to our current directory and let’s load it into our cluster as  
> follows:
> 
> curl -XPOST 'localhost:9200/bank/account/\_bulk?pretty' --data-binary @accounts.json  
> curl 'localhost:9200/\_cat/indices?v'

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0a0bb0ca-6cda-40c9-ad7d-689c27796257%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0a0bb0ca-6cda-40c9-ad7d-689c27796257%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jochen\_Rieseberg](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@Jochen\_Rieseberg](https://discuss.elastic.co/u/Jochen_Rieseberg)\
**Post date:** [October 2, 2014, 6:36am UTC](https://discuss.elastic.co/t/problem-with-data-load/20025/3 "2014-10-02T06:36:42Z")

</div>

thx for ur answer but it did not help; I just do not know where to extract  
this example file accounts.json - i think this is the problem, the file is  
not found

On Wednesday, October 1, 2014 4:24:27 PM UTC+2, Tanguy Leroux wrote:

> Hi Jochen,
> 
> The command in the reference guide looks good to me. It seems that you  
> copy/paste the command with the HTML encoded chars of the documentation.  
> You might try without copy/paste from the doc.
> 
> Also, I think "our current directory" stands for "the directory where the  
> accounts.json file is located".
> 
> -- Tanguy
> 
> Le mercredi 1 octobre 2014 15:47:08 UTC+2, Jochen Rieseberg a écrit :
> 
> > Hi,
> > 
> > I just tried to follow the reference guide with load data and get an  
> > error:
> > 
> > No handler found for uri  
> > [/'localhost:9200/bank/account/\_bulk?pretty%27%20--data-binary%20@accounts.json]  
> > and method [POST]
> > 
> > Is there an error in the code of the reference guide or did I put data in  
> > the wrong directory?
> > 
> > So, what does he mean with "our current directory"?
> > 
> > Many thanks for any help
> > 
> > Jochen Rieseberg
> > 
> > You can download the sample dataset (accounts.json) from here  
> > [https://github.com/bly2k/files/blob/master/accounts.zip?raw=true](https://github.com/bly2k/files/blob/master/accounts.zip?raw=true).  
> > Extract it to our current directory and let’s load it into our cluster as  
> > follows:
> > 
> > curl -XPOST 'localhost:9200/bank/account/\_bulk?pretty' --data-binary @accounts.json  
> > curl 'localhost:9200/\_cat/indices?v'

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/05d50ac3-bb1d-4b7c-80f5-c85127b8a584%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/05d50ac3-bb1d-4b7c-80f5-c85127b8a584%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jochen\_Rieseberg](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@Jochen\_Rieseberg](https://discuss.elastic.co/u/Jochen_Rieseberg)\
**Post date:** [October 2, 2014, 6:37am UTC](https://discuss.elastic.co/t/problem-with-data-load/20025/4 "2014-10-02T06:37:17Z")

</div>

thx for ur answer but it did not help; I just do not know where to extract  
this example file accounts.json - i think this is the problem, the file is  
not found

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c88fadd6-8ae4-4081-920d-203ff99e582e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c88fadd6-8ae4-4081-920d-203ff99e582e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:58am UTC](https://discuss.elastic.co/t/problem-with-data-load/20025/5 "2017-07-06T00:58:48Z")

</div>


