{"id":2419,"date":"2024-10-31T17:38:36","date_gmt":"2024-10-31T08:38:36","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=2419"},"modified":"2024-10-31T17:38:36","modified_gmt":"2024-10-31T08:38:36","slug":"elastic-search-%ea%b5%ac%ec%b6%95","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=2419","title":{"rendered":"Elastic Search \uad6c\ucd95"},"content":{"rendered":"<p><strong>I. \ubaa9\ud45c<\/strong><\/p>\n<p style=\"padding-left: 40px;\">Elastic Search Engine\uc758 \uad6c\ucd95 \uad00\ub828 \uc808\ucc28\uc5d0 \ub300\ud558\uc5ec \uc5f0\uad6c\ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p><b>II. \uc5f0\uad6c<\/b> <b>\ubc0f<\/b> <b>\uac1c\ubc1c\ub0b4\uc6a9<\/b><\/p>\n<p>1.\u00a0 JDK \uc124\uce58<\/p>\n<p style=\"padding-left: 40px;\">JDK 1.8\uc774\uc0c1\uc73c\ub85c \ubcf8 \ubb38\uc11c\uc5d0\uc11c\ub294 64\ube44\ud2b8\uc6a9 JDK15\ub97c \uae30\uc900\uc73c\ub85c \ud55c\ub2e4.<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>\ub2e4\uc6b4\ub85c\ub4dc URL : <a href=\"https:\/\/www.oracle.com\/java\/technologies\/javase-jdk15-downloads.html\">https:\/\/www.oracle.com\/java\/technologies\/javase-jdk15-downloads.html<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 80px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2420\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f11-300x229.png\" alt=\"\" width=\"457\" height=\"349\" srcset=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f11-300x229.png 300w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f11.png 500w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/p>\n<p>2. ElasticSearch \uc124\uce58<\/p>\n<p style=\"padding-left: 40px;\">1) Windows \uae30\ubc18 \uc124\uce58<\/p>\n<p style=\"padding-left: 80px;\">\uac00. \ub2e4\uc6b4\ub85c\ub4dc<\/p>\n<p style=\"padding-left: 120px;\"><a href=\"https:\/\/www.elastic.co\/kr\/downloads\/elasticsearch\">https:\/\/www.elastic.co\/kr\/downloads\/elasticsearch<\/a> \uc5d0\uc11c Windows \ud56d\ubaa9 \ub2e4\uc6b4\ub85c\ub4dc<\/p>\n<p style=\"padding-left: 120px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2421\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f12-300x202.png\" alt=\"\" width=\"511\" height=\"344\" srcset=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f12-300x202.png 300w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f12-768x517.png 768w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f12.png 837w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/p>\n<p style=\"padding-left: 80px;\">\ub098. \uc555\ucd95\ud574\uc81c<\/p>\n<p style=\"padding-left: 120px;\">\ud2b9\uc815\ud3f4\ub354\uc5d0 \uc555\ucd95\uc744 \ud47c\ub2e4.<\/p>\n<p style=\"padding-left: 120px;\">D:\\Service\\elasticsearch-7.12.1<\/p>\n<p style=\"padding-left: 80px;\">\ub2e4. \uc124\uc815\ud30c\uc77c\uc218\uc815 : config\ud3f4\ub354\uc758 elasticsearch.yml \ud30c\uc77c \uc218\uc815<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>\ub370\uc774\ud130 \ud3f4\ub354 \uc9c0\uc815<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<table style=\"width: 100%; margin-left: 120px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>#path.data: \/path\/to\/data<\/p>\n<p>path.data D:\\Service\\Data\\ElasticSearch\\Data<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>\ub85c\uadf8 \ud3f4\ub354 \uc9c0\uc815<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<table style=\"width: 100%; margin-left: 120px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>#path.logs: \/path\/to\/logs<\/p>\n<p>path.logs: D:\\Service\\Data\\ElasticSearch\\Log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 80px;\">\ub77c. \ud615\ud0dc\uc18c\ubd84\uc11d\uae30 \uc124\uce58<\/p>\n<p style=\"padding-left: 120px;\">bin\/elasticsearch-plugin install analysis-nori<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 40px;\">2) \ub9ac\ub205\uc2a4 \uae30\ubc18 \uc124\uce58<\/p>\n<p style=\"padding-left: 80px;\">\uac00. Elastic Public GPG \ud0a4 \ucd94\uac00<\/p>\n<table style=\"width: 100%; margin-left: 100px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>$ sudo curl -fsSL <a href=\"https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\">https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch<\/a> | sudo apt-key add &#8211;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 80px;\">\ub098. sources.list.d \ud3f4\ub354\uc5d0 Elastic \uc18c\uc2a4\ub9ac\uc2a4\ud2b8\ub97c \ucd94\uac00<\/p>\n<table style=\"width: 100%; margin-left: 100px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>sudo echo &#8220;deb <a href=\"https:\/\/artifacts.elastic.co\/packages\/7.x\/apt\">https:\/\/artifacts.elastic.co\/packages\/7.x\/apt<\/a> stable main&#8221; | sudo tee -a \/etc\/apt\/sources.list.d\/elastic-7.x.list<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 80px;\">\ub2e4. apt \uc5c5\ub370\uc774\ud2b8<\/p>\n<table style=\"width: 100%; margin-left: 100px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>sudo apt-get update<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 80px;\">\ub77c. \uc124\uce58<\/p>\n<table style=\"width: 100%; margin-left: 100px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>sudo apt-get install elasticsearch<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 80px;\">\ub9c8. \ud658\uacbd\uc124\uc815<\/p>\n<p style=\"padding-left: 120px;\">\uc6d0\uaca9\uc5d0\uc11c \uc811\uc18d\ud558\uae30 \uc704\ud574 \ud658\uacbd\uc124\uc815\uc5d0 \ucd94\uac00<\/p>\n<p style=\"padding-left: 120px;\">vi \/etc\/elasticsearch\/elasticsearch.yml<\/p>\n<table style=\"width: 100%; margin-left: 120px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>network.host: 0.0.0.0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 80px;\">\ubc14. \uc624\ub958\ub85c \uc778\ud558\uc5ec \ud658\uacbd\uc124\uc815 \uc218\uc815<\/p>\n<table style=\"width: 100%; margin-left: 120px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>ERROR: [1] bootstrap checks failed. You must address the points described in the following [1]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 120px;\">vi \/etc\/elasticsearch\/elasticsearch.yml \ub97c \ud558\uc5ec \uc544\ub798\ub97c \ucd94\uac00\ud568.<\/p>\n<p style=\"padding-left: 120px;\">discovery.seed_hosts: [&#8220;127.0.0.1&#8221;]\n<table style=\"width: 100%; margin-left: 120px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>{ &#8220;error&#8221; : { &#8220;root_cause&#8221; : [ { &#8220;type&#8221; : &#8220;master_not_discovered_exception&#8221;, &#8220;reason&#8221; : null } ], &#8220;type&#8221; : &#8220;master_not_discovered_exception&#8221;, &#8220;reason&#8221; : null }, &#8220;status&#8221; : 503 }<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 120px;\">cluster.initial_master_nodes: [&#8220;topaz-linux&#8221;] \ucd94\uac00<\/p>\n<p style=\"padding-left: 80px;\">\uc0ac. \uba54\ubaa8\ub9ac\uc124\uc815<\/p>\n<p style=\"padding-left: 120px;\">Elasticsearch did not exit normally &#8211; check the logs at \/var\/log\/elasticsearch\/elasticsearch.log<\/p>\n<p style=\"padding-left: 120px;\">\uba54\ubaa8\ub9ac\uac00 \ubd80\uc871\ud558\uc5ec \uc11c\ube44\uc2a4\uac00 \uc2e4\ud589\uc548\ub420\uacbd\uc6b0<\/p>\n<p style=\"padding-left: 120px;\">vi \/etc\/elasticsearch\/jvm.options \uc5d0 \uc544\ub798\uc640 \uac19\uc774 \ucd94\uac00<\/p>\n<table style=\"width: 100%; margin-left: 120px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>-Xms4g<\/p>\n<p>-Xmx4g<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 80px;\">\uc544. \ubc29\ud654\ubcbd \uc624\ud508<\/p>\n<table style=\"width: 100%; margin-left: 120px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>ufw allow 9358\/tcp<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 80px;\">\ucc28. \ud615\ud0dc\uc18c<\/p>\n<p style=\"padding-left: 120px;\">cd \/usr\/share\/elasticsearch\/bin<\/p>\n<p style=\"padding-left: 120px;\">.\/elasticsearch-plugin install analysis-nori<\/p>\n<p>3. ElasticSearch \uad6c\ub3d9<\/p>\n<p style=\"padding-left: 40px;\">1) \uc708\ub3c4\uc6b0 \uc2e4\ud589 : bin \ud3f4\ub354\ub85c \uc774\ub3d9\ud558\uc5ec elasticsearch.bat \uc2e4\ud589<\/p>\n<p style=\"padding-left: 80px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2422\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f13-300x157.png\" alt=\"\" width=\"445\" height=\"233\" srcset=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f13-300x157.png 300w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f13-768x402.png 768w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f13.png 979w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/p>\n<p style=\"padding-left: 80px;\"><a href=\"http:\/\/localhost:9200\">http:\/\/localhost:9200<\/a><\/p>\n<p style=\"padding-left: 80px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2423\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f14-300x194.png\" alt=\"\" width=\"431\" height=\"279\" srcset=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f14-300x194.png 300w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/10\/\uc5d8\ub77c\uc2a4\ud2f14.png 580w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/p>\n<p style=\"padding-left: 40px;\">2) \uc6b0\ubd84\ud22c \uc2e4\ud589<\/p>\n<table style=\"width: 100%; margin-left: 40px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>service elasticsearch start<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>III. \uacb0\ub860<\/b><\/p>\n<p>Elastic Search \uc5d4\uc9c4\uc774 \uc798 \ub3d9\uc791\ub428\uc744 \ud655\uc778\ud560\uc218 \uc788\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I. \ubaa9\ud45c Elastic Search Engine\uc758 \uad6c\ucd95 \uad00\ub828 \uc808\ucc28\uc5d0 \ub300\ud558\uc5ec \uc5f0\uad6c\ud55c\ub2e4. &nbsp; II. \uc5f0\uad6c \ubc0f \uac1c\ubc1c\ub0b4\uc6a9 1.\u00a0 JDK \uc124\uce58 JDK 1.8\uc774\uc0c1\uc73c\ub85c \ubcf8 \ubb38\uc11c\uc5d0\uc11c\ub294 64\ube44\ud2b8\uc6a9 JDK15\ub97c \uae30\uc900\uc73c\ub85c \ud55c\ub2e4. \ub2e4\uc6b4\ub85c\ub4dc URL : https:\/\/www.oracle.com\/java\/technologies\/javase-jdk15-downloads.html 2. ElasticSearch \uc124\uce58 1) Windows \uae30\ubc18 \uc124\uce58 \uac00. \ub2e4\uc6b4\ub85c\ub4dc https:\/\/www.elastic.co\/kr\/downloads\/elasticsearch \uc5d0\uc11c Windows \ud56d\ubaa9 \ub2e4\uc6b4\ub85c\ub4dc \ub098. \uc555\ucd95\ud574\uc81c \ud2b9\uc815\ud3f4\ub354\uc5d0 \uc555\ucd95\uc744 \ud47c\ub2e4. D:\\Service\\elasticsearch-7.12.1 \ub2e4. \uc124\uc815\ud30c\uc77c\uc218\uc815 : config\ud3f4\ub354\uc758 elasticsearch.yml [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[300,2],"tags":[301,302],"class_list":["post-2419","post","type-post","status-publish","format-standard","hentry","category-elasticsearch","category-2","tag-elastic-search","tag-302"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2419"}],"version-history":[{"count":1,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2419\/revisions"}],"predecessor-version":[{"id":2424,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2419\/revisions\/2424"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2419"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}