Elasticsearch & Installation

Elasticsearch               Selection_004

Elasticsearch is a popular open-source search and analytics engine for use cases such as log analytics, real-time application monitoring, and click stream analytics.

Elasticsearch  is a search server based on Lucene. Elasticsearch is developed in Java and is released as open source under the terms of the Apache License. Elasticsearch is the most popular enterprise search engine followed by “Apache Solr”, also based on Lucene.

Lucene: Lucene is a “free and open-source information retrieval software library”, originally written in Java by “Doug Cutting”. It is supported by the Apache Software Foundation and is released under the Apache Software License. Also K/A Apache Lucene.)

Elasticsearch allows you to explore your data at a speed and at a scale never before possible. It is used for full-text search, structured search, analytics, and all three in combination:

  •  Stack Overflow combines full-text search with geolocation queries and uses more-like-this to find related questions and answers.
  •  Wikipedia uses Elasticsearch to provide full-text search with highlighted search snippets, and search-as-you-type and did-you-mean suggestions. Etc

But Elasticsearch is not just for mega-corporations. It has enabled many startups. Elasticsearch can run on your laptop, or scale out to hundreds of servers and petabytes of data.

Shay Banon released the first version of Elasticsearch in February 2010. And the Latest version of elasticsearch is 2.3.0

Elasticsearch 2.3  includes all of the latest advances in speed, security, scalability, and hardware efficiency.

  • Real Time Data
  • Massively Distributed
  • Real-Time Advanced Analytics

High Availability: Elasticsearch clusters are resilient — they will detect new or failed nodes, and reorganize and rebalance data automatically, to ensure that your data is safe and accessible. ETC.

And more info in details please follow the link: https://www.elastic.co/products/elasticsearch

Elasticsearch Installation:

Here below given the official link of elasticsearch product, by clicking on this you can take easy step to install and configure

https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html#setup-repositories

or follow these command: For Ubuntu OS

Elasticsearch require java, so we will install that now. We will install a recent version of Java because that is what Elasticsearch recommends. Add the Oracle Java PPA to apt:

$sudo add-apt-repository  -y   ppa:webupd8team/java
$ sudo  apt-get   update
Install the latest stable version of Oracle Java 8 with this command
$ sudo apt-get -y install oracle-java8-installer
$ sudo apt-get -y install oracle-java8-installer

Elasticsearch can be installed with a package manager by adding Elastic’s package source list. Run the following command to import the Elasticsearch public GPG key into apt. And after that Create the Elasticsearch source list

$  wget   qO -  https://packages.elastic.co/GPG-KEY-elasticsearch  | sudo apt-key add -         
$ echo  "deb  http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
Again update the apt (package's Repository) and install elasticseacrh by  the command
$ sudo   apt-get update
$ sudo  apt-get install elasticsearch   -y
Now configure the Elasticsearch to restrict outside access to your Elasticsearch instance (port 9200), 
so outsiders can't read your data or shutdown your Elasticsearch cluster through the HTTP API.
 Find the line that specifies network.host, uncomment it and re-write as like
$ sudo vim  /etc/elasticsearch/elasticsearch.yml

 network.host: localhost
 http.port: 9200
Now start the Elasticsearch service and set to start Elasticsearch on
boot up
$ sudo  service   elasticsearch   restart
$ sudo update-rc.d   elasticsearch  defaults   95    10
Now  Elasticsearch has been installed and configure, also it is up and running

After Installation you’ve started your server, you can ensure it’s running properly by opening your browser to the URL http://localhost:9200. You should see a page that looks something like

{
"name": "Smasher",
 "cluster_name": "elasticsearch",
 "version":
 {  "lucene_version": "5.5.0
  },
  "tagline": "You Know, for Search"
}
Advertisements

2 thoughts on “Elasticsearch & Installation

  1. Gaurav Srivastava says:

    it was great experience to review various articles on various portal. And learn from different different portal,( back-link are mentioned ), So now i hope a new person who want to know/learn about elasticsearch, they can easly understand the basic concept and how to install it, and where they can use of elasticsearch.
    Thank you to all who views this post. And give me the your valuable feedback

    Liked by 1 person

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