Working with elastic search ubuntu

Posted by : on

Category : Elastic Search

Elasticsearch is an open-source, broadly-distributable, readily-scalable, enterprise-grade search engine. Accessible through an extensive and elaborate API, Elasticsearch can power extremely fast searches that support your data discovery applications.

Installing java

Elasticsearch require Java, so first install that. You can install java with the help of Synaptic Package Manager or by:

  • Add Java PPA to apt: sudo add-apt-repository -y ppa:webupd8team/java
  • Update packages: sudo apt-get update
  • Install java sudo apt-get -y install oracle-java8-installer

Import the Elasticsearch public GPG key into apt:

sudo wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -

Create the Elasticsearch source list:

  • echo 'deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main' | sudo tee /etc/apt/sources.list.d/elasticsearch.list
  • sudo apt-get update
  • sudo apt-get -y install elasticsearch=1.4.4 Now Elasticsearch is installed. To restrict the access only to local system add a line to your configuration file elasticsearch.yml.

  • sudo vi /etc/elasticsearch/elasticsearch.yml

and then uncomment the network.host option and replace it with:

  • network.host: localhost

Start elasticsearch by:

  • sudo service elasticsearch start

If you want to start elasticsearch on bootup then execute:

  • sudo update-rc.d elasticsearch defaults 95 10

Enjoy!!!!



About Ram Laxman Yadav
Ram Laxman Yadav

Senior Software Engineering Professional | Tech Enthusiast | Mentor | Payments | Hospitality | E-Commerce, based in NCR, India

Email : info@ramlaxman.co.in

Website : https://ramlaxman.co.in