Cant load Demo-Data - Tutorial is wrong?

(Rico) #1


im stuck at the tutorial to load demo data, maybe someone of you can help me to continue:

I try this line in console (Kibana):
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json
and i get:
"statusCode": 400,
"error": "Bad Request",
"message": "child "method" fails because ["method" must be one of [HEAD, GET, POST, PUT, DELETE]]",
"validation": {
"source": "query",
"keys": [
Can anyone tell me whats wrong?
ES is installed on a Mac with Sierra, all works fine at installation. I got no error message at installing Kibana and Elasticsearch.

Thank you

(Mark Walkom) #2

I think there is a typo there, shouldn't it be just application/json?

(Rico) #3

Hi Mark,
i tried it with your proposal, but the error message is the same. I tried the tutorial, so i assume there are no typo in this tutorial. Maybe my installation is wrong?

Sorry for my late answer, i was ill.

Thank you

(Rico) #4

Hallo again,
If i try in browser http://localhost:9200/bank i get
{"error":{"root_cause":[{"type":"index_not_found_exception",‌​"reason":"no such index","resource.type":"index_or_alias","":"bank"‌​,"index_uuid":"_na_"‌​,"index":"bank"}],"t‌​ype":"index_not_foun‌​d_exception","reason‌​":"no such index","resource.type":"index_or_alias","":"bank"‌​,"index_uuid":"_na_"‌​,"index":"bank"},"st‌​atus":404}

I defined log stash-*as default index pattern.

Did i miss something to do?



(Mark Walkom) #5

If you actually have a space there that would be why.

(Rico) #6

No, no space there. I defined logstash-* as index.

(Mark Walkom) #7

It's not log stash, it's logstash.

(Rico) #8

Yes, thats defined: logstash-*

It was a typo in this post. sorry

(Mark Walkom) #9

What does GET /_cat/indices?v show?

(Rico) #10

It shows:
health status index uuid pri rep docs.count docs.deleted store.size yellow open logstash-2015.05.18 W6HUeWikTLWLGV6N_2APXw 5 1 0 0 795b 795b yellow open shakespeare VH4PrsJ_TZaTzQ1HAWpOEg 5 1 0 0 795b 795b yellow open logstash-2015.05.19 rm7sX7MkQSShwrkzA8UuTQ 5 1 0 0 795b 795b yellow open logstash-2015.05.20 1i-pAxzaTpWscYud0Ufczg 5 1 0 0 795b 795b yellow open my-index kbh6QknWRuWlt8dPnb7N7A 5 1 1 0 3.8kb 3.8kb yellow open .kibana oY5181HmQPmPFIE8JvGy4Q 1 1 2 1 9.4kb 9.4kb

(Mark Walkom) #11

You're trying to load http://localhost:9200/bank but that doesn't exist as the cat output shows.

Have you followed and

(Rico) #12

Have you followed and

Of course not, because im stuck in the chapter before. Normally it makes no sense to continue a tutorial if a step won't work. Especially not in the beginning.

I tried now to define the index for shakes* and it works. To create a second index for ba* won't work.

What tells you in result of cat that i can't expect a result of .../bank?

(Mark Walkom) #13

You should expect it, but it's not there.

Did the other curl uploads work?

(Rico) #14

No, there is the same Problem.

(Mark Walkom) #15

Ahh ok. I just ran the shakespeare import on 5.4.0 and it worked fine.

Can you post the entire command you are running, with the output. Make sure to include your shell prompt as well.

(system) #16

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.