Jason Tian

Suck out the marrow of data

Elasticsearch Installation

I installed elasticsearch and related tools on Mac. Firstly you can refer to this website; however there are still some tricks we need to pay attention.

1. Check if your java is up-to-date.

2. Download and extract Elasticsearch in the directory you want:

curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.tar.gz
tar -xvf elasticsearch-5.2.2.tar.gz

3. Download and extract Kibana (do not download from start page):

wget https://artifacts.elastic.co/downloads/kibana/kibana-5.2.2-darwin-x86_64.tar.gz
tar -xzf kibana-5.2.2-darwin-x86_64.tar.gz

4. Install X-Pack (for security and authentication) in Elasticsearch install dir:

bin/elasticsearch-plugin install x-pack

5. Install X-Pack in Kibana install dir:

bin/kibana-plugin install x-pack

6. Run Elasticsearch in the default port 9200:

# Under the dir elasticsearch-5.2.2
./bin/elasticsearch -Ecluster.name=my_cluster_name -Enode.name=my_node_name

7. Run Kibana in the default port 5601:

# Under the dir kibana-5.2.2-darwin-x86_64
.bin/kibana

Remarks:

  1. The default username of Elasticsearch for xpack is elastic and password is changeme
  2. The default username of Kibana for xpack is elastic and password is changeme