読者です 読者をやめる 読者になる 読者になる

AWSにElasticsearchをインストールしてみた

ElasticSearch

AWSにElasticSearchをインストールしてみた AWSのOSはAmazon Linuxをつかってます

  • RPMを取得してインストール
wget 'https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.noarch.rpm'
sudo rpm -ivh ./elasticsearch-1.3.2.noarch.rpm
sudo /usr/share/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-cloud-aws/2.3.0
  • ElasticSearchを起動
sudo service elasticsearch restart
$  cat /var/log/elasticsearch/elasticsearch.log
[2014-09-06 07:58:50,101][INFO ][node                     ] [Conan the Barbarian] version[1.3.2], pid[1777], build[dee175d/2014-08-13T14:29:30Z]
[2014-09-06 07:58:50,101][INFO ][node                     ] [Conan the Barbarian] initializing ...
[2014-09-06 07:58:50,113][INFO ][plugins                  ] [Conan the Barbarian] loaded [cloud-aws], sites []
[2014-09-06 07:58:52,901][INFO ][node                     ] [Conan the Barbarian] initialized
[2014-09-06 07:58:52,901][INFO ][node                     ] [Conan the Barbarian] starting ...
[2014-09-06 07:58:52,960][INFO ][transport                ] [Conan the Barbarian] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/172.31.4.218:9300]}
[2014-09-06 07:58:52,975][INFO ][discovery                ] [Conan the Barbarian] elasticsearch/4LHaG6gdQEaLrT_RMkNXsA
[2014-09-06 07:58:55,995][INFO ][cluster.service          ] [Conan the Barbarian] new_master [Conan the Barbarian][4LHaG6gdQEaLrT_RMkNXsA][ip-172-31-4-218][inet[/172.31.4.218:9300]], reason: zen-disco-join (elected_as_master)
[2014-09-06 07:58:56,022][INFO ][http                     ] [Conan the Barbarian] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/172.31.4.218:9200]}
[2014-09-06 07:58:56,022][INFO ][node                     ] [Conan the Barbarian] started
[2014-09-06 07:58:56,033][INFO ][gateway                  ] [Conan the Barbarian] recovered [0] indices into cluster_state

次回設定ファイルとかをいじって実際に検索できるようにしたい