LoginSignup
9
9

More than 5 years have passed since last update.

MacでElasitcSearchことはじめ

Last updated at Posted at 2013-09-08

※ElasticSearchはJava製なので、あらかじめJavaをインストールする必要があります。

インストール

brew install elasticsearch

起動

elasticsearch -f

起動ログ
[2013-09-08 17:40:16,969][INFO ][node                     ] [Trapper] version[0.90.3], pid[32210], build[5c38d60/2013-08-06T13:18:31Z]
[2013-09-08 17:40:16,970][INFO ][node                     ] [Trapper] initializing ...
[2013-09-08 17:40:16,984][INFO ][plugins                  ] [Trapper] loaded [analysis-kuromoji], sites []
[2013-09-08 17:40:19,777][INFO ][node                     ] [Trapper] initialized
[2013-09-08 17:40:19,778][INFO ][node                     ] [Trapper] starting ...
[2013-09-08 17:40:19,942][INFO ][transport                ] [Trapper] bound_address {inet[/127.0.0.1:9302]}, publish_address {inet[/127.0.0.1:9302]}
[2013-09-08 17:40:23,087][INFO ][cluster.service          ] [Trapper] new_master [Trapper][d7aP7UwWRQi5Ml2mxJJHhQ][inet[/127.0.0.1:9302]], reason: zen-disco-join (elected_as_master)
[2013-09-08 17:40:23,125][INFO ][discovery                ] [Trapper] elasticsearch_yabuki-ryosuke/d7aP7UwWRQi5Ml2mxJJHhQ
[2013-09-08 17:40:23,141][INFO ][http                     ] [Trapper] bound_address {inet[/127.0.0.1:9202]}, publish_address {inet[/127.0.0.1:9202]}
[2013-09-08 17:40:23,141][INFO ][node                     ] [Trapper] started
[2013-09-08 17:40:23,165][INFO ][gateway                  ] [Trapper] recovered [0] indices into cluster_state

このようなメッセージがでればOK

アクセスしてみる

[2013-09-08 17:40:23,141][INFO ][http                     ] [Trapper] bound_address {inet[/127.0.0.1:9202]}, publish_address {inet[/127.0.0.1:9202]}

ここにあるように 127.0.0.1:9202 にアクセスしてみましょう。
まちがって transportの`27.0.0.1:9302にアクセスしないようにしましょう。
(これで自分は20分ほど嵌ってました orz)

curl  127.0.0.1:9202
{
  "ok" : true,
  "status" : 200,
  "name" : "Trapper",
  "version" : {
    "number" : "0.90.3",
    "build_hash" : "5c38d6076448b899d758f29443329571e2522410",
    "build_timestamp" : "2013-08-06T13:18:31Z",
    "build_snapshot" : false,
    "lucene_version" : "4.4"
  },
  "tagline" : "You Know, for Search"
}%

このようなメッセージがでれば問題ないです。

9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9