Wednesday, May 15, 2013

Easy Steps To Install Couchbase Server2.0 and ElasticSearch

Couchbase server Installation

Couchbase Server 2.0 adds powerful indexing and querying capabilities through its distributed map reduce implementation. But in addition to that many applications, particularly content applications also need full-text search capabilities .

Step 1 :  Download Couchbase server latest version form Here .

Step 2 :  If you are installing in ubuntu just double click the .deb file it will 
               install from software center .

Step 3 :  After installation completed just open http://localhost:8091 you can see
               couchbase web console setup page complete the steps .

Finally it will ask sample buckets just choose beer-sample bucket and click ok .


That's it..


ElasticSearch Installation :

 Here i am installing elasticsearch0.20.2 version its working fine. If you want to install different version download from Here

Step 1  :  Open terminal and type  : curl -sLO \http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.2.tar.gz      It will download elasticsearch package .

Step 2  :  tar zxf elasticsearch-0.20.2.tar.gz    extract it

Now that we have the ElasticSearch core, let's add some plugins.

 The first is called "head". It provides a basic web UI to ElasticSearch so that we can more easily see what is going on. Installation is as simple as:

$ cd elasticsearch-0.20.2
$ bin/plugin -install mobz/elasticsearch-head
-> Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/zipball/master... (assuming site plugin)
Downloading .....................................DONE
Identified as a _site plugin, moving to _site structure ...
Installed head


 Now we are ready to install the Couchbase plug-in

 $ bin/plugin -install transport-couchbase -url http://packages.couchbase.com.s3.amazonaws.com/releases/elastic-search-adapter/1.0.0/elasticsearch-transport-couchbase-1.0.0-beta.zip
-> Installing transport-couchbase...
Trying http://packages.couchbase.com.s3.amazonaws.com/releases/elastic-search-adapter/1.0.0/elasticsearch-transport-couchbase-1.0.0-beta.zip...
Downloading ...........................................................................DONE
Installed transport-couchbase


Now that the plug-in is installed we need to set the password for the Couchbase transport.

 $ echo "couchbase.password: password" >> config/elasticsearch.yml


All the plug-ins we need are installed, let's go ahead and start ElasticSearch.
$ bin/elasticsearch
 This starts ElasticSearch and puts it into the background.







No comments:

Post a Comment