elasticsearch


can't load demo data for elasticsearch at tutorial


im starting with elasticsearch. Got Elasticsearch and Kibana installed on my Mac on Sierra (with no error). Now i try to start with the demo data to explore ES with this tutorial: https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html
All works fine but i got two problems:
1) I got an error at
PUT /logstash-2015.05.20 {...}
Errormessage:
{
"error": {
"root_cause": [
{
"type": "index_already_exists_exception",
"reason": "index [logstash-2015.05.20/1i-pAxzaTpWscYud0Ufczg] already exists",
"index_uuid": "1i-pAxzaTpWscYud0Ufczg",
"index": "logstash-2015.05.20"
}
],
"type": "index_already_exists_exception",
"reason": "index [logstash-2015.05.20/1i-pAxzaTpWscYud0Ufczg] already exists",
"index_uuid": "1i-pAxzaTpWscYud0Ufczg",
"index": "logstash-2015.05.20"
},
"status": 400
}`
Can i ignore this message if the index already exist? So all should be fine?
2) Even at the next step i got an error:
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary #accounts.json`
Errormessage:
{
"statusCode": 400,
"error": "Bad Request",
"message": "child \"method\" fails because [\"method\" must be one of [HEAD, GET, POST, PUT, DELETE]]",
"validation": {
"source": "query",
"keys": [
"method"
]
}
}
Thanks for any help or hints.
Look at the file. It contains one line for index/mapping and other settings
{"index":{"_id":"1"}}
and another line the document itself:
{"account_number":1,"balance":39225,"firstname":"Amber","lastname":"Duke","age":32,"gender":"M","address":"880 Holmes Lane","employer":"Pyrami","email":"amberduke#pyrami.com","city":"Brogan","state":"IL"}
This two lines are repeated for each document to be indexed using _bulk api. just try to `put' one of documents in your index
PUT localhost:9200/bank/account/1
{"account_number":1,"balance":39225,"firstname":"Amber","lastname":"Duke","age":32,"gender":"M","address":"880 Holmes Lane","employer":"Pyrami","email":"amberduke#pyrami.com","city":"Brogan","state":"IL"}
Are you familiar with sense plugin for chrome? It can be very helpful for elasticsearch development :-)

Related Links

Converting nginx access log bytes to number in Kibana4
Elasticsearch minBy
Snowball analyzer vs language analyzer
AND between tokens in elasticsearch
Elasticsearch Stemmer Override Token Filter not working when usind rules path
Logstash extracting values from sp_executesql
Logstash Grok Modifying and overwriting #timestamp
how to restore elasticsearch.yml config file to original?
Index a graph with ElasticSearch
ElasticSearch query not returning expected results
Fluentd High Availability Custom Index
How do I add an attribute to an Elasticsearch node for the purpose of Shard Allocation Filtering?
Configure ElasticSearch attachment mapper to use OCR plugin
ElasticSearch: How to search for a value in any field, across all types, in one or more indices?
Phrase suggestor - which index and query to act upon
Adding additional fields to ElasticSearch terms aggregation

Categories

HOME
android-espresso
tomcat
gaming
functional-programming
yii
livecode
softlayer
scroll
systemd
antd
plaid
ant
histogram
malware
cypher
repair
google-search-console
anchor
solution
colors
spring-jpa
trace32
android-5.1.1-lollipop
scala-ide
maven-plugin
bluemix-mobile-services
gollum-wiki
uislider
acl
device
firemonkey-style
managed-c++
sfml
ninject
vcenter
payeezy
cups
twilio-php
jqgrid-asp.net
transparency
destroy
flume-twitter
adblock
wysihtml5
.net-micro-framework
icecast
freshdesk
sesame
polymaps
rustdoc
oracle-fusion-apps
pjax
jsonix
system.net.mail
ftp-client
facebook-ios-sdk
processor
as3-api
onepage-checkout
gdl
ibm-was
opencyc
libz
roxygen2
swagger-maven-plugin
cache-manifest
relational-model
actionpack
incron
sql-processor
comctl32
datagridcomboboxcolumn
jini
commenting
webaii
django-sites
assetic
cloo
pbkdf2
boinc
tnt4j
lru
user-forums
jquery-dialog
websphere-6.1
wcf-callbacks
django-apps
delphi-prism
kohana-auth
grails-validation
channelfactory
explicit
multiple-users
android-input-method
prism-2
remote-working
error-detection

Resources

Encrypt Message