[ES]Content-Type header [application/x-www-form-urlencoded] is not supported
# DataBase/Elasticsearch2022. 10. 4. 16:04[ES]Content-Type header [application/x-www-form-urlencoded] is not supported

수정전 [darksharavim.tistory.com]curl -XPOST http://localhost:9200/classes/class/1?pretty -d ' {"title" : "Algorithm", "professor" : "John"}' { "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 } ES6.0이후 정책으로 인하여 헤더에 컨텐츠타입을 지정해줘야함. 수정후 [darksharavim.tistory.com]curl -XPOST http://localhost:9200/classes/class/1?pretty >-H 'Content-Type: application/..

[trouble shooting]master_not_discovered_exception
# DataBase/Elasticsearch2021. 4. 7. 13:28[trouble shooting]master_not_discovered_exception

엘라스틱 health 확인시 아래와 같이 상태값이 503 # curl -XGET "localhost:9200/_cluster/health?pretty" { "error" : { "root_cause" : [ { "type" : "master_not_discovered_exception", "reason" : null } ], "type" : "master_not_discovered_exception", "reason" : null }, "status" : 503 } 추가확인시 클러스터 uuid값이 나오지 않았음 # curl http://localhost:9200/ { "name" : "node-1", "cluster_name" : "elasticsearch", "cluster_uuid" : "_na_",..

image