5. elasticsearchのインストール
$ wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.2.2.tar.gz
$ tar zxvf elasticsearch-1.2.2.tar.gz
インストール
設定
config/elasticsearch.ymlが設定ファイルなのでこのファイルを修正
今回はとりあえず以下の設定だけ入れておく。
index.number_of_shards: 1 #シャードの数
index.number_of_replicas: 0 #レプリカの数
# Path to directory where to store index data allocated for this node.
path.data: /home/ec2-user/elasticsearch-1.2.2/data
# Path to log files:
path.logs: /home/ec2-user/elasticsearch-1.2.2/logs