Setup CouchBase and Elastic Search on Centos 6.x Hosts


Couchbase can replicate its documents to the Solr based Elastic Search service. This enables you to perform full text searches against documents that are in your Couchbase cluster. If you are reading this then I will assume you already know why this might be useful and won’t go any further on the subject. I will simply describe how to set it up.

Key Components

CouchBase Cluster

A CouchBase cluster is the primary store which holds the documents you need to index. This will “push” the documents to the Elastic Search service. This cluster is made up of one or more CouchBase server hosts.

Elastic Search Cluster

The elastic search cluster is the index engine which receives your CouchBase documents.

Eleastic Search Couch Base Plugin

This is installed as an additional plugin to your Elastic search setup.

Example Architecture

In my example setup I am going to have a single host running Couchbase cluster with a bucket called “bigbucket” and a Elastic Search cluster with one host with an index called “bigindex”. My hosts are called and respectively.

See illustration for overview:


Install CouchBase on Centos 6.x Server

Install a couchbase on server

Install Elastic Search on Centos 6.x Server

Here we are going to install the Elastic Search core service on our designated elastic search host. We are also going to install 3 other additional components.

  1. The CouchBase plugin – this is essential for our purposes. We want to index documents from a CouchBase cluster and this plugin provides the transport for this.
  2. The Elastic Search Head – this provides a basic web based gui for monitoring and some configuration of elastic search.
  3. The Elastic Search Service Wrapper – this provides a wrapper for running the Elastic Search as a Centos daemon.

Comments are closed.