Prerequisite
- Ubuntu installed on the PC
- Download Open Java 1.7 RPM (OpenJava 1.7.0.9-2.3.4.1.el6_3.x86_64)
- Download ElasticSearch RPM (elasticsearch-2.1.1.rpm)
Install OpenJava 1.7
# yum install java-1.7.0-openjdk-1.7.0.9-2.3.4.1.el6_3.x86_64.rpm
Install ES
# rpm -i elasticsearch-2.1.1.rpm
/etc/elasticsearch
/etc/elasticsearch/elasticsearch.yml
/etc/elasticsearch/logging.yml
/etc/elasticsearch/scripts
/etc/rc.d/init.d/elasticsearch
/etc/sysconfig/elasticsearch
/usr/lib/sysctl.d/elasticsearch.conf
/usr/share/elasticsearch
/usr/share/elasticsearch/bin
/usr/share/elasticsearch/bin/plugin
/usr/share/elasticsearch/lib
/usr/share/elasticsearch/plugins
/usr/share/elasticsearch/bin/elasticsearch
/var/lib/elasticsearch
/var/log/elasticsearch
Update YML file
Uncomment and set configuration of machine IP address and port for ES
# vi /etc/elasticsearch/elasticsearch.yml
http.port: 9200
network.host: 10.170.208.44
Set ES_HOME
# export ES_HOME=/usr/share/elasticsearch
Start ES
# export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre/
# service elasticsearch start
Check if ES is running as a service
# service elasticsearch status
Check ES in Java processes
# ps -aef | grep elasticsearch
No comments:
Post a Comment
Note: only a member of this blog may post a comment.