Skip to content

NDBench ES Tutorial

Vinay Chella edited this page Mar 14, 2019 · 6 revisions

This section provides Elasticsearch-specific steps to perform at certain points in the flow of the Generic Tutorial Steps. Please refer to that section for context.

Initial Set-up

  1. Start Elasticsearch in Docker (this might take a couple of minutes to download if you haven't set it up yet.)
docker run -d -e xpack.security.enabled=false --name=elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.6.2
  1. Setup datastore specific environment variables for Elasticsearch:
export CONTAINER_SPECIFIC_SETTINGS="-Dndbench.config.es.hostName=datastore"

Elasticsearch-specific Verification

  1. 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).