Elasticsearch Installation on CentOS7

Hi All, I will explain you how to install Elasticsearch (v 1.7.4) on CentOS7 Operating system.

Bu makalenin Türkçe versiyonu için tıklayınız.

Before, we need to install JVM because Eleasticsearch run on JAVA.

yum install -y java-1.8.0-openjdk.x86_64


After installation of JAVA, go to https://www.elastic.co and download ES 1.7.4 package.

wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.4.noarch.rpm


After this step,  continue Elasticsearch installation with rpm -i

rpm -i elasticsearch-1.7.4.noarch.prm


After installation, we need to run the commands which are needed to run at OS level respectively. At this point, we should pay attention to declare on which NIC, Elasticsearch will work.

Example: In /etc/elasticsearch/elasticsearch.yml configuration file http.bind.host can be edited as “”.

After declaring the NIC that Elasticsearch will work on it, now we can start the service.

systemctl start elasticsearch


After starting the server, if you do not change Elasticsearch (ES) configuration, it will write its logs under /var/log/elasticsearch folder.

Before send a request to ES, do a final check to the ports that ES run.

netstat -tulpn


After verify the NIC declarations that we did in /etc/elasticsearch/elasticsearch.yml, we can send requests to the ES server.

curl -XGET


After installation, in order to increase cluster node number by adding a new node to the system, open /etc/elasticsearch/elasticsearch.yml
and write discovery.zen.ping.unicast.hosts: “current ES server IP address”.

The plugins that I want to suggest


Database Operations in JavaFX

By Onur Baskirt / Apr 1, 2016 / 56 Comments
Before started this section, please check the first article and learn How to Start JAVAFX! http://www.swtestacademy.com/getting-started-with-javafx/ At first, part of JavaFX tutorial series, we created a sample JavaFX project, designed the draft version of the UI and set up an...
rest assured

REST API Testing with Rest Assured

By Onur Baskirt / Mar 8, 2016 / 32 Comments
Outline In this post, I will explain what is API and API testing, what is the difference between SOAP and REST services, and how to test REST APIs with Rest Assured Library. What is API? API stands for Application Programming...

How to Write Effective CSS Locators

By Onur Baskirt / Oct 1, 2017 / 0 Comments
Hi all, in this tutorial, I will describe you how to write effective CSS locators to interrogate web elements for your automation projects. As a rule of thumb, your interrogation strategy should be in below order: First try to use...

Selenium-11: Execute JavaScript with JavascriptExecutor

By Onur Baskirt / Jan 27, 2016 / 15 Comments
Outline Sometimes we cannot handle some conditions or problems with Webdriver, web controls don't react well against selenium commands. In this kind of situations, we use Javascript. It is useful for custom synchronizations, hide or show the web elements, change...

Getting Started with JavaFX

By Onur Baskirt / Mar 25, 2016 / 0 Comments
When I started to work in my current position, one of my task is to do manual operations for campaign products  every week. After the second week, I thought that I have to automate this task using a GUI based...

How to Write Smart XPath Locators

By Onur Baskirt / Sep 24, 2017 / 4 Comments
Hi all, in this tutorial, I will describe you how to write smart and non-brittle XPath locators. When we write our test scripts, we generally prefer to use id, name, class, etc. these kinds of locators. However, sometimes we could not...

Selenium-1: Quick Start to Automation with Selenium WebDriver & JAVA & JUnit & Maven & IntelliJ

By Onur Baskirt / Sep 8, 2015 / 26 Comments
Outline Selenium Webdriver is the most popular open source web test automation framework across wide range of browsers and platforms. In this tutorial you will learn how to do web test automation with Selenium Webdriver and the related tools. Audience...
page object model

Page Object Model with C#

By Ege Aksoz / Jun 18, 2017 / 8 Comments
In the previous tutorial, we’ve taken the initial steps and entered the world of automated testing. We also wrote our first automated test. From this point on, since we are not just going to write one test, we need to...

How to Select a Date From DatePicker Using Selenium

By Onur Baskirt / Aug 13, 2016 / 6 Comments
When you need to automate a airway, hotel, or similar websites you need to deal with Datepickers and some times it is a little bit cumbersome to select a specific date on the Datepicker or calendar.  In this post, I...

Selenium Webdriver Performance testing with Jmeter and Selenium Grid

By Ozgur Kaya / Aug 9, 2016 / 2 Comments
In this post, we will complete Selenium Webdriver Performance testing scenario using Jmeter and Selenium Grid. 1- Install Java 7 or later If necessary https://java.com/tr/download/ 2- Download latest Jmeter version 3.0 or higher. http://jmeter.apache.org/download_jmeter.cgi 3- Download Jmeter PluginsManager JAR file and...
By | 2017-01-13T21:33:41+00:00 September 4th, 2016|Devops, Elasticsearch|0 Comments

About the Author:

Ahmet Ay
Ahmet Ay is currently Head of System and Data Management at Kariyer.net. Before, he worked at D-Smart, Doğan Online, and Escortnet as system administrator. You can also follow him on his blog https://ahmetfay.wordpress.com/

Leave A Comment