환경 및 설정
- Window 환경에서 진행
- ES와 키바나는 같은 버전 필요
CURL
- 서버와 통신할 수 있는 명령어
- 웹개발에 많이 사용되는 무료 오픈 소스
- 다양한 프로토콜(HTTP, HTTPS, FTP, SCP...) 제공
CURL 명령어
GET 조회
curl -XGET http://localhost:9200/tacoyaggi
curl -XGET http://localhost:9200/tacoyaggi?pretty
Put 입력
curl -XPUT http://localhost:9200/tacoyaggi
Delete 삭제
curl -XDELETE http://localhost:9200/tacoyaggi
ES 환경설정
- elasticsearch.yml 파일을 통해서 변경 가능
- 상단에 클러스터 및 노드 이름 변경
- ES 실행해보면 클러스터 및 노드 이름 변경 확인
C:\Users\jm111>curl localhost:9200
{
"name" : "taco-node1",
"cluster_name" : "taco-cluster1",
"cluster_uuid" : "0wSbXzWORKmlcXNw4LiMLQ",
"version" : {
"number" : "8.7.1",
"build_flavor" : "default",
"build_type" : "zip",
"build_hash" : "f229ed3f893a515d590d0f39b05f68913e2d9b53",
"build_date" : "2023-04-27T04:33:42.127815583Z",
"build_snapshot" : false,
"lucene_version" : "9.5.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}