Elasticsearch For Mac

gistfile1.txt

This article walks through creating a DSN for Elasticsearch data in iODBC and accessing Elasticsearch data in Microsoft Excel, all on a machine running Mac OS X. Installing the CData ODBC Drivers on Mac OS X. The CData ODBC Driver for Elasticsearch is preconfigured for the iODBC driver manager, as are many other products like Microsoft Excel. The installation matrix for the ELK Stack (Elasticsearch, Logstash and Kibana) is extremely varied, with Linux, Windows and Docker all being supported. For development purposes, installing the stack on Mac OS X is a more frequent scenario. More on the subject: Securing the ELK Stack with Nginx.

Elasticsearch for mac versions
#!/usr/bin/env sh
# checks to see if running
launchctl list | grep elasticsearch
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
launchctl remove homebrew.mxcl.elasticsearch
pkill -f elasticsearch
rm -f ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
brew uninstall elasticsearch
# double check existence
ls -al /usr/local/bin/elasticsearch*
ls -al ~/Library/LaunchAgents

commented Dec 15, 2015

Elasticsearch For Mac

Note to self: I followed this in order to cleanly upgrade from 090 to 2.x and since I had incompatible index mappings I needed to delete all the data before I was able to cleanly start the newer version.

commented Jan 6, 2016

Same things Here.
To find your data just brew info elasticsearch and check where the data folder is stored.

commented Feb 29, 2016

Elasticsearch For Macbook

Thanks ... nice commands.
All worked well but in my case i installed ES 2.2 and then downgraded to 1.7 and when i do

Elasticsearch for mac versions

commented Dec 9, 2019

Elasticsearch For Mac Versions

Just wanted to add one more thing after uninstall elasticsearch/logstash/kibana with above commands, please remove those directories from /usr/local/etc and then try to install them from scratch again. Above commands work well to uninstall but without removing ELK directories it will not allow user to reinstall ELK stack properly.

commented Dec 28, 2019

Elasticsearch Format

I had to remove data, logs, plugins and config for brew elasticsearch to work properly

rm -rf /usr/local/var/lib/elasticsearch/
rm -rf /usr/local/var/log/elasticsearch/elasticsearch_account.log
rm -rf /usr/local/var/elasticsearch/plugins/
rm -rf /usr/local/etc/elasticsearch/

Elasticsearch Format _source

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment