Elastic Search is showing Status Failed to Restart

Elastic Search is showing Status Failed to Restart:

  The Previously Elastic search is not working? then please follow these steps::
Step-1::
Remove previous versions of ElasticSearch:
sudo apt-get --purge autoremove elasticsearch
Step-2::
Remove the Elastic Search directories:
sudo rm -rf /var/lib/elasticsearch/

sudo rm -rf /etc/elasticsearch
Step-3::
Now, Re Install ElasticSearch 1.6 (as your version required ):
First,
Downloading and Installing Elasticsearch

Elasticsearch can be downloaded directly from elastic.co in zip, tar.gz, deb, or rpm packages. For Ubuntu, it’s best to use the deb (Debian) package which will install everything you need to run Elasticsearch.

At the time of this writing, the latest Elasticsearch version is 1.7.2. Download it in a directory of your choosing with the command:

wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.6.0.deb

Then install it in the usual Ubuntu way with the dpkg command like this:

sudo dpkg -i elasticsearch-1.6.0.deb
 If you want the latest released version of Elasticsearch, go to elastic.co to find the link, and then use wget to download it to your Droplet. Be sure to download the deb package.
Second,
Go to your elastic search downloaded directory and
cd /.../downloads/.....
now, run this command,
sudo dpkg -i elasticsearch-1.6.0.deb
***  AFTER INSTALL OUTPUT::  ***
——————————————–
Selecting previously unselected package elasticsearch.
(Reading database … 215950 files and directories currently installed.)
Preparing to unpack elasticsearch-1.7.2.deb …
Creating elasticsearch group… OK
Creating elasticsearch user… OK
Unpacking elasticsearch (1.7.2) …
Setting up elasticsearch (1.7.2) …
Processing triggers for systemd (229-4ubuntu21.2) …
Processing triggers for ureadahead (0.100.0-19) …
ureadahead will be reprofiled on next reboot
Step-4::
Now, Start the Elastic search service,
sudo service elasticsearch start
Step-5::
Check the Elastic search, is it working,
sudo service elasticsearch status
Step-6::
Now, Check in your local machine Elastic Search is working or not…
For Output in local machine: type:
http://localhost:9200/
# Result::

{

  "status" : 200,

  "name" : "Skin",

  "cluster_name" : "elasticsearch",

  "version" : {

    "number" : "1.7.2",

    "build_hash" : "e43676b1385b8125d647f593f7202acbd816e8ec",

    "build_timestamp" : "2015-09-14T09:49:53Z",

    "build_snapshot" : false,

    "lucene_version" : "4.10.4"

  },

  "tagline" : "You Know, for Search"

}

 

source:

What is Elastic search Output if running in python or django

For OUTPUT: type: http://localhost:9200/
Result:
{

  "status" : 200,

  "name" : "Skin",

  "cluster_name" : "elasticsearch",

  "version" : {

    "number" : "1.7.2",

    "build_hash" : "e43676b1385b8125d647f593f7202acbd816e8ec",

    "build_timestamp" : "2015-09-14T09:49:53Z",

    "build_snapshot" : false,

    "lucene_version" : "4.10.4"

  },  
  "tagline" : "You Know, for Search"
}