Elastic Search

Hi!! Here are initial steps for Elastic Search

Step 1Installing Java

First, you will need a Java Runtime Environment (JRE) on your Droplet because Elasticsearch is written in the Java programming language. Elasticsearch requires Java 7 or higher.

Installing OpenJDK:
First update the list of available packages.
  $sudo apt-get update

Then install OpenJDK
   $sudo apt-get install openjdk-7-jre

To verify your JRE is installed and can be used, run the command:
   $java – version
   Output:
java version “1.7.0_79”
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
Installing Java 8

Step 2 — Downloading and Installing Elasticsearch

Download:
  $wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.2.deb

Install:
  $sudo dpkg -i elasticsearch-1.7.2.deb
Elasticsearch being installed in /usr/share/elasticsearch/
Its configuration files placed in /etc/elasticsearch
Its init script added in /etc/init.d/elasticsearch.

To make sure Elasticsearch starts and stops automatically with the Droplet, add its init script to the default runlevels with the command:

$sudo update-rc.d elasticsearch defaults

Step 3 — Configuring Elastic.

The Elasticsearch configuration files are in the /etc/elasticsearch directory. There are two files:

elasticsearch.yml — Configures the Elasticsearch server settings. This is where all options, except those for logging, are stored.

logging.yml — Provides configuration for logging. In the beginning, you don’t have to edit this file. You can leave all default logging options. You can find the resulting logs in /var/log/elasticsearch by default.

To start editing the main elasticsearch.yml configuration file:

$sudo nano /etc/elasticsearch/elasticsearch.yml

Thanks!!!

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s