HOW TO INSTAL ELASTICSEARCH (ES)

(Notes)

HOW TO INSTAL ELASTICSEARCH (ES)
================================

# GO TO
http://www.elasticsearch.org/overview/elkdownloads/

# If you’ve installed the .deb package, then the plugin exectuable will be available at 
/usr/share/elasticsearch/bin/plugin

# MANUAL INSTALATION
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
sudo dpkg -i elasticsearch-1.0.1.deb
sudo update-rc.d elasticsearch defaults 95 10
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
java -version
dpkg --contents elasticsearch-1.0.1.deb

# CONFIGURATION
df
sudo vi /etc/elasticsearch/elasticsearch.yml
    uncomment: bootstrap.mlockall: true
    change to you location: path.data: /mnt/elasticsearch/data
cd /mnt
sudo mkdir elasticsearch
cd elasticsearch/
sudo mkdir data
cd data
sudo mkdir elasticsearch
sudo chmod 777 /mnt/elasticsearch/data
sudo chmod 777 /mnt/elasticsearch/data/elasticsearch

# SETUP MEMORY FOR ES
sudo vi /usr/share/elasticsearch/bin/elasticsearch
  add (more or less depnding on your server capabilities): 
    export ES_MIN_MEM=60G
    export ES_MAX_MEM=60G

# HOW TO VIEW ELASTICSEARCH STATUS
sudo /etc/init.d/elasticsearch status

# HOW TO RUN ELASTICSEARCH
sudo /etc/init.d/elasticsearch start
sudo /etc/init.d/elasticsearch restart

# HOW TO STOP ELASTICSEARCH
sudo /etc/init.d/elasticsearch stop

# HOW TO VIEW CURRENT LOG OF ELASTICSEARCH
tail -f /var/log/elasticsearch/elasticsearch.log

HOW TO INSTAL PLUGINGS FOR ES
=============================

# GO TO & RUN
cd /usr/share/elasticsearch

# HEAD
sudo bin/plugin --install mobz/elasticsearch-head
http://localhost:9200/_plugin/head/

sudo bin/plugin --install lukas-vlcek/bigdesk
http://localhost:9200/_plugin/bigdesk/

# MARVEL
sudo bin/plugin -i elasticsearch/marvel/latest
http://localhost:9200/_plugin/marvel/

# HQ
sudo bin/plugin -install royrusso/elasticsearch-HQ
http://localhost:9200/_plugin/HQ/

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *