title: Can't start ElasticSearch on Mac
body: <p>I installed <code>elasticsearch</code> by <code>brew install elasticsearch</code> and started it with <code>brew services start elasticsearch</code>, however, <code>curl http://127.0.0.1:9200</code> shows <code>connection refused</code>. I checked the port: <code>netstat -a -n | grep tcp | grep 9200</code> and some <code>ipv4</code> is running there. Ok, so I opened <code>/usr/local/etc/elasticsearch/elasticsearch.yml</code> and changed the port to <code>9300</code> and also uncommented and changed: <code>network.host: 127.0.0.1</code>. Still shows <code>connection refused</code> when I do <code>curl http://127.0.0.1:9300</code>. The <code>OS</code> is <code>MacOS High Sierra 10.13.4</code>. If we open <code>/usr/local/var/log/elasticsearch/elasticsearch_nikitavlasenko.log</code> the error seems to be:</p>
  
  <blockquote>
    <p>Cluster name [elasticsearch_nikitavlasenko] subdirectory exists in data paths [/usr/local/var/lib/elasticsearch/elasticsearch_nikitavlasenko]. All data under these paths must be moved up one directory to paths [/usr/local/var/lib/elasticsearch]</p>
  </blockquote>