-
Notifications
You must be signed in to change notification settings - Fork 103
NDBench ES Tutorial
buildlackey edited this page Oct 17, 2017
·
6 revisions
- Start Elasticsearch in Docker (this might take a couple of minutes to download if you haven't set it up yet.)
docker run -e xpack.security.enabled=false --name=elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:5.6.3
- Setup datastore specific environment variables for Elasticsearch:
export CONTAINER_SPECIFIC_SETTINGS="-Dndbench.config.es.hostName=datastore"
- Verify that documents are being indexed into your Elasticsearch instance.
- Run the command curl localhost:9200/_cat/indices?v a few times and notice how the documents are continually added into the default index (ndbench_index).