메신저에서 elasticsearch에 대한 데모 데이터를로드 할 수 없습니다. Elasticsearch와 Kibana가 Sierra의 Mac에 설치되었습니다 (오류없이). 지금은이 튜토리얼 ES를 탐험하기 위해 데모 데이터로 시작하려고 : https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html 모든 잘 작동하지만 난 두 가지 문제가있어 : 나는 PUT /logstash-2015.05.20 {...}
은 elasticsearch로 시작하는
ERRORMESSAGE에 오류가있어
1) :
{
"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
}`
을
색인이 이미 존재하는 경우이 메시지를 무시해도됩니까? 그래서 모두 괜찮을거야?
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"
]
}
}
덕분에 내가 오류를 얻었다하더라도 다음 단계에서
2).
logstash를 실행하기 전에 logstash가 색인을 생성하려고하므로 삭제해야합니다. 두 번째 오류에 대해 ** account.json ** 파일이 있습니까? 한 문서를 복사하여 탄성 모드에 추가하십시오 (벌크 모드가 아님) –
logstash를 설치하지 않았습니다. 이것은 자습서의 일부가 아니므로 설치하지 마십시오. 첫 번째 버그는 내 실수 인 것 같습니다. 나는 두 번째 색인을 만들기 시작합니다. 두 번째 오류에 관해서 : 예,이 파일은 지역에 있습니다. 하지만 네가해야 할 일이 뭔지 전혀 모르겠다. 죄송합니다. ES 초보자입니다. – Enrico