Problem with data load

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. 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3b0fb48f-398b-4b21-9f4b-4bec59e51ab2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0a0bb0ca-6cda-40c9-ad7d-689c27796257%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/05d50ac3-bb1d-4b7c-80f5-c85127b8a584%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c88fadd6-8ae4-4081-920d-203ff99e582e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.